dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d20bf39
)
*Still use = for LIST_SET so as not no kill non-where queries
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 11 Jul 2007 20:26:33 +0000
(20:26 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 11 Jul 2007 20:26:33 +0000
(20:26 +0000)
includes/Database.php
patch
|
blob
|
history
diff --git
a/includes/Database.php
b/includes/Database.php
index
4e6efa4
..
bbf56e8
100644
(file)
--- 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 {