From cdec2f7e3eb2f64c8d916b1d94f74462603eb884 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 21 May 2005 11:33:03 +0000 Subject: - Patch #16303 by Gerhard: fixed some warnings. --- modules/user/user.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 5b80fc7f0..b84e73838 100644 --- a/modules/user/user.module +++ b/modules/user/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; } /** -- cgit v1.2.3