diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-31 23:11:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-31 23:11:17 +0000 |
commit | b97bcfd51d77da08bd30a9d81c8bcfd4fcc2e9a0 (patch) | |
tree | ed930a92fc492cc3a35b60478c7c580735193f47 /etc | |
parent | 9671bc55295066974f013b1b2e71e46f9be012ec (diff) | |
download | pfsense-b97bcfd51d77da08bd30a9d81c8bcfd4fcc2e9a0.zip pfsense-b97bcfd51d77da08bd30a9d81c8bcfd4fcc2e9a0.tar.gz |
Only check item if it is an array.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/auth.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index eeb0aef..cc486e0 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -337,8 +337,9 @@ function isSystemAdmin($username = "") { if($config['system']['webgui']['backend'] == "ldap") { $groups = ldap_get_groups($username); - if(in_array("admins", $groups)) - return true; + if(is_array($groups)) + if(in_array("admins", $groups)) + return true; } if ($username == "") { return 0; } |