diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-06 08:51:53 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-06 08:51:53 +0000 |
commit | 30b26cc4b8aee78bda91cd932db37339c8f3e9b0 (patch) | |
tree | 1cf989ba27c8bebf73dfc9cbd5f1cab67013f64d | |
parent | c616a596c62a668a91ad7852a94f1319b87e3475 (diff) | |
download | brdo-30b26cc4b8aee78bda91cd932db37339c8f3e9b0.tar.gz brdo-30b26cc4b8aee78bda91cd932db37339c8f3e9b0.tar.bz2 |
#81777 by havran and Jaza. Postgres compatibility.
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index c055fa664..dc0d78a91 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -631,7 +631,7 @@ function drupal_is_denied($type, $mask) { // (allowed). // The use of ORDER BY / LIMIT is more efficient than "MAX(status) = 0" // in PostgreSQL <= 8.0. - return (bool) db_result(db_query_range("SELECT NOT(status) FROM {access} WHERE type = '%s' AND LOWER('%s') LIKE LOWER(mask) ORDER BY status DESC", $type, $mask, 0, 1)); + return (bool) db_result(db_query_range("SELECT (status = 0) FROM {access} WHERE type = '%s' AND LOWER('%s') LIKE LOWER(mask) ORDER BY status DESC", $type, $mask, 0, 1)); } /** |