Index: trunk/phase3/includes/Database.php |
— | — | @@ -1534,8 +1534,10 @@ |
1535 | 1535 | } elseif ( ($mode == LIST_AND || $mode == LIST_OR) && is_array($value) ) { |
1536 | 1536 | $list .= $field." IN (".$this->makeList($value).") "; |
1537 | 1537 | } elseif( is_null($value) ) { |
1538 | | - if ( $mode == LIST_AND || $mode == LIST_OR || $mode == LIST_SET ) { |
| 1538 | + if ( $mode == LIST_AND || $mode == LIST_OR ) { |
1539 | 1539 | $list .= "$field IS "; |
| 1540 | + } elseif ( $mode == LIST_SET ) { |
| 1541 | + $list .= "$field = "; |
1540 | 1542 | } |
1541 | 1543 | $list .= 'NULL'; |
1542 | 1544 | } else { |