summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-05-21 11:33:03 +0000
committerDries Buytaert <dries@buytaert.net>2005-05-21 11:33:03 +0000
commitcdec2f7e3eb2f64c8d916b1d94f74462603eb884 (patch)
treef83dbaf38aff03af82a5e9c08692df8be98cba9a /modules/user/user.module
parent62427644ebc07c2be56153ffc2db012ced6eef7c (diff)
downloadbrdo-cdec2f7e3eb2f64c8d916b1d94f74462603eb884.tar.gz
brdo-cdec2f7e3eb2f64c8d916b1d94f74462603eb884.tar.bz2
- Patch #16303 by Gerhard: fixed some warnings.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module6
1 files changed, 4 insertions, 2 deletions
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;
}
/**