diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 0b955b32e2..a395a91821 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -849,11 +849,10 @@ function get_user_expiration_date($username) { function is_account_disabled($username) { global $config; - foreach($config['system']['user'] as $user) { - if(isset($user['disabled'])) { - return true; - } - } + foreach($config['system']['user'] as $user) + if($user == $username) + if(isset($user['disabled'])) + return true; return false; } diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 902dd26e75..bcfa4356a9 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -414,7 +414,7 @@ echo "