diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-03 04:35:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-03 04:35:18 +0000 |
commit | 682a9c512d04c54d627d4e3ea1bd2e7288ef9731 (patch) | |
tree | 5f580f43263689cf6b3cb6b473d0908eed12056d /usr | |
parent | 94010532780eca19076afdf82439c82002bc06d9 (diff) | |
download | pfsense-682a9c512d04c54d627d4e3ea1bd2e7288ef9731.zip pfsense-682a9c512d04c54d627d4e3ea1bd2e7288ef9731.tar.gz |
Only assign &$ if item is an array.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_usermanager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index 8bf996a..80af866 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -48,7 +48,8 @@ if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER'])) { $config['system']['user'] = array(); admin_users_sort(); - $a_user = &$config['system']['user']; + if (is_array($config['system']['user'])) + $a_user = &$config['system']['user']; $t_privs = $a_user[$id]['priv']; if ($_GET['act'] == "del" && $_GET['what'] == "user") { |