summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-07-29 21:34:56 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-07-29 21:34:56 +0000
commit2a561f3bc1105cc1d5e8ca14482cdf0760c2a16a (patch)
treea2bd398cee25cdb846191a01e8e23c70ac8293d5 /modules/user.module
parente4096e14180d231574e1830fcc61b823a71592b3 (diff)
downloadbrdo-2a561f3bc1105cc1d5e8ca14482cdf0760c2a16a.tar.gz
brdo-2a561f3bc1105cc1d5e8ca14482cdf0760c2a16a.tar.bz2
- #16705: Make user_access always return a boolean.
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user.module b/modules/user.module
index 192b497e7..151afd2c6 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -335,7 +335,7 @@ function user_access($string, $account = NULL) {
}
if (isset($perm[$account->uid])) {
- return strstr($perm[$account->uid], "$string, ");
+ return strpos($perm[$account->uid], "$string, ") !== FALSE;
}
return FALSE;