diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-10 23:29:21 -0600 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-10 23:29:21 -0600 |
commit | 06f31080c7281c8227d2556cd0807744e91c9fb5 (patch) | |
tree | 5c6571a83b94268389d977a3d6b3ff1c820e4d59 /includes/database | |
parent | e59e9d948fa31fbfbf36b08611e04a74aab4dd93 (diff) | |
download | brdo-06f31080c7281c8227d2556cd0807744e91c9fb5.tar.gz brdo-06f31080c7281c8227d2556cd0807744e91c9fb5.tar.bz2 |
Issue #813540 by jbrown, chx: Fixed Comparisons involving NULL must never return true.
Diffstat (limited to 'includes/database')
-rw-r--r-- | includes/database/query.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/database/query.inc b/includes/database/query.inc index c77968767..9cdd8784e 100644 --- a/includes/database/query.inc +++ b/includes/database/query.inc @@ -1704,9 +1704,6 @@ class DatabaseCondition implements QueryConditionInterface, Countable { if (is_array($value)) { $operator = 'IN'; } - elseif (!isset($value)) { - $operator = 'IS NULL'; - } else { $operator = '='; } @@ -1740,7 +1737,7 @@ class DatabaseCondition implements QueryConditionInterface, Countable { * Implements QueryConditionInterface::isNull(). */ public function isNull($field) { - return $this->condition($field); + return $this->condition($field, NULL, 'IS NULL'); } /** |