diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-01-23 16:20:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-01-23 16:20:10 +0000 |
commit | 9cd36863b0c7ee8b5ffa00c26e0f11515cab4ddd (patch) | |
tree | d7912d15b9f51cebb4285146f5056e48e373f713 /modules/node.module | |
parent | 898e02252d680bb2f766ab91899bbdb3a7b794dd (diff) | |
download | brdo-9cd36863b0c7ee8b5ffa00c26e0f11515cab4ddd.tar.gz brdo-9cd36863b0c7ee8b5ffa00c26e0f11515cab4ddd.tar.bz2 |
- I had to modify chx's patch/change because it did not work with PHP5. Please double-check.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index fed38070a..2962f3788 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1725,7 +1725,7 @@ function node_access($op, $node = NULL, $uid = NULL) { * An SQL join clause. */ function node_access_join_sql($node_alias = 'n', $node_access_alias = 'na') { - if (empty(module_implements('node_grants')) || user_access('administer nodes')) { + if (!module_implements('node_grants') || user_access('administer nodes')) { return ''; } @@ -1746,7 +1746,7 @@ function node_access_join_sql($node_alias = 'n', $node_access_alias = 'na') { * An SQL where clause. */ function node_access_where_sql($op = 'view', $node_access_alias = 'na', $uid = NULL) { - if (empty(module_implements('node_grants')) || user_access('administer nodes')) { + if (!module_implements('node_grants') || user_access('administer nodes')) { // This number is being used in a SQL query as a boolean. // It is "'1'" instead of "1" for database compatibility, as both // PostgreSQL and MySQL treat it as boolean in this case. |