SF.net SVN: postfixadmin: [186] trunk/functions.inc.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <chr...@us...> - 2007-11-04 00:54:05
|
Revision: 186
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=186&view=rev
Author: christian_boltz
Date: 2007-11-03 17:54:09 -0700 (Sat, 03 Nov 2007)
Log Message:
-----------
OOps. Removed forgotten debugging code again.
Modified Paths:
--------------
trunk/functions.inc.php
Modified: trunk/functions.inc.php
===================================================================
--- trunk/functions.inc.php 2007-11-04 00:53:13 UTC (rev 185)
+++ trunk/functions.inc.php 2007-11-04 00:54:09 UTC (rev 186)
@@ -1537,6 +1537,8 @@
*/
function db_insert ($table, $values, $timestamp = array())
{
+ $table = table_by_key ($table);
+
foreach(array_keys($values) as $key) {
$values[$key] = "'" . escape_string($values[$key]) . "'";
}
@@ -1547,8 +1549,6 @@
$sql_values = "(" . implode(",",escape_string(array_keys($values))).") VALUES (".implode(",",$values).")";
- $table = table_by_key ($table);
-echo "*** $sql_values ***"; exit;
$result = db_query ("INSERT INTO $table $sql_values");
return $result['rows'];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|