From 358b187c5c95a52293d288b65d1d4963c9d76a5d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 11 Jul 2007 20:26:33 +0000 Subject: [PATCH] *Still use = for LIST_SET so as not no kill non-where queries --- includes/Database.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Database.php b/includes/Database.php index 4e6efa4cfe..bbf56e8706 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -1534,8 +1534,10 @@ class Database { } elseif ( ($mode == LIST_AND || $mode == LIST_OR) && is_array($value) ) { $list .= $field." IN (".$this->makeList($value).") "; } elseif( is_null($value) ) { - if ( $mode == LIST_AND || $mode == LIST_OR || $mode == LIST_SET ) { + if ( $mode == LIST_AND || $mode == LIST_OR ) { $list .= "$field IS "; + } elseif ( $mode == LIST_SET ) { + $list .= "$field = "; } $list .= 'NULL'; } else { -- 2.20.1