diff options
Diffstat (limited to 'modules/user.module')
-rw-r--r-- | modules/user.module | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index 5b80fc7f0..b84e73838 100644 --- a/modules/user.module +++ b/modules/user.module @@ -332,8 +332,10 @@ function user_access($string, $account = NULL) { $perm[$account->uid] .= "$row->perm, "; } } - - return strstr($perm[$account->uid], "$string, "); + if (isset($perm[$account->uid])) { + return strstr($perm[$account->uid], "$string, "); + } + return FALSE; } /** |