"switched permanent debug message off again"

This commit is contained in:
Ralf Becker 2008-06-04 05:26:52 +00:00
parent dd157b2cd0
commit 6b74d6ad88

View File

@ -581,6 +581,10 @@ class so_sql
*/ */
function delete($keys=null) 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 if (!is_array($keys) || !count($keys)) // use internal data
{ {
$data = $this->data; $data = $this->data;
@ -977,7 +981,7 @@ class so_sql
{ {
if ($data[$key_col] != $other[$key_col]) if ($data[$key_col] != $other[$key_col])
{ {
//if ((int) $this->debug >= 4) if ((int) $this->debug >= 4)
{ {
echo "<p>not_unique in ".array2string($col)." as for '$key_col': '${data[$key_col]}' != '${other[$key_col]}'</p>\n"; echo "<p>not_unique in ".array2string($col)." as for '$key_col': '${data[$key_col]}' != '${other[$key_col]}'</p>\n";
} }