summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_queues.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-03-18 16:58:01 +0000
committerErmal Luçi <eri@pfsense.org>2008-03-18 16:58:01 +0000
commitf24f98298ad1fc2508f98f3a71da69816ca91f51 (patch)
treeeedfb0ea9ad604b622ea0daaeb54c14ab7358b5a /usr/local/www/status_queues.php
parentb3ef71a07c7f2e66a31e37c2b8fdd37c94bdd13c (diff)
downloadpfsense-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/www/status_queues.php')
-rwxr-xr-xusr/local/www/status_queues.php8
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;
}
OpenPOWER on IntegriCloud