*Still use = for LIST_SET so as not no kill non-where queries
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 11 Jul 2007 20:26:33 +0000 (20:26 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 11 Jul 2007 20:26:33 +0000 (20:26 +0000)
includes/Database.php

index 4e6efa4..bbf56e8 100644 (file)
@@ -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 {