diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/modules/user/user.module b/modules/user/user.module index 192b497e7..151afd2c6 100644 --- a/modules/user/user.module +++ b/modules/user/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; |