From 0af62b80b37772ccdaeb343a2bea59cc8dd2e784 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 27 Feb 2005 21:27:36 +0000 Subject: [PATCH] fixed wrong comparison with NULL in column_data_implode --- phpgwapi/inc/class.db.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/class.db.inc.php b/phpgwapi/inc/class.db.inc.php index cea5b1af8c..0ebcfa28fb 100644 --- a/phpgwapi/inc/class.db.inc.php +++ b/phpgwapi/inc/class.db.inc.php @@ -1126,6 +1126,10 @@ { $values[] = $data; } + elseif ($use_key === True && !$not_null && is_null($data)) + { + $values[] = $this->name_quote($key) .' IS NULL'; + } else { $values[] = ($use_key===True ? $this->name_quote($key) . '=' : '') . $this->quote($data,$column_type,$not_null);