From 6b74d6ad88ab0b65e8c74916d67462d690e09c35 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 4 Jun 2008 05:26:52 +0000 Subject: [PATCH] "switched permanent debug message off again" --- etemplate/inc/class.so_sql.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index 5286425a0e..c99f76f7b9 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -581,6 +581,10 @@ class so_sql */ function delete($keys=null) { + if ($this->autoinc_id && $keys && !is_array($keys)) + { + $keys = array($this->autoinc_id => $keys); + } if (!is_array($keys) || !count($keys)) // use internal data { $data = $this->data; @@ -977,7 +981,7 @@ class so_sql { if ($data[$key_col] != $other[$key_col]) { - //if ((int) $this->debug >= 4) + if ((int) $this->debug >= 4) { echo "

not_unique in ".array2string($col)." as for '$key_col': '${data[$key_col]}' != '${other[$key_col]}'

\n"; }