diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-03-18 16:58:01 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-03-18 16:58:01 +0000 |
commit | f24f98298ad1fc2508f98f3a71da69816ca91f51 (patch) | |
tree | eedfb0ea9ad604b622ea0daaeb54c14ab7358b5a /usr/local | |
parent | b3ef71a07c7f2e66a31e37c2b8fdd37c94bdd13c (diff) | |
download | pfsense-f24f98298ad1fc2508f98f3a71da69816ca91f51.zip pfsense-f24f98298ad1fc2508f98f3a71da69816ca91f51.tar.gz |
Fix an issue where the traffic shaper is not configured anwhich would make the gui freeze.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_queues.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php index ca6a6a0..dd5ab0f 100755 --- a/usr/local/www/status_queues.php +++ b/usr/local/www/status_queues.php @@ -37,10 +37,6 @@ if($_GET['reset'] <> "") { exit; } -if (!is_array($config['shaper']['queue'])) { - $config['shaper']['queue'] = array(); -} - $a_queues = array(); $pfctl_vsq = `/sbin/pfctl -vsq`; @@ -73,8 +69,8 @@ include("head.inc"); <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> <?php -if(!is_array($config['shaper']['queue'])) { - echo "Traffic shaping is currently disabled."; +if(!is_array($config['shaper']['queue']) && count($config['shaper']['queue']) < 1) { + echo "Traffic shaping is not configured."; include("fend.inc"); exit; } |