From: Aaron Schulz Date: Wed, 11 Jul 2007 20:26:33 +0000 (+0000) Subject: *Still use = for LIST_SET so as not no kill non-where queries X-Git-Tag: 1.31.0-rc.0~52128 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=358b187c5c95a52293d288b65d1d4963c9d76a5d;p=lhc%2Fweb%2Fwiklou.git *Still use = for LIST_SET so as not no kill non-where queries --- 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 {