summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_queues_edit.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-06-13 03:42:15 +0000
committerBill Marquette <billm@pfsense.org>2005-06-13 03:42:15 +0000
commit75fa93b79e7d62d0c573b9fd0c6c6220a62996f1 (patch)
tree81959c9dd0e2923ed05fe50b1c1522c25f93c2f8 /usr/local/www/firewall_shaper_queues_edit.php
parent69c4bf80411c94433f323ec5ff2df9de0b325d40 (diff)
downloadpfsense-75fa93b79e7d62d0c573b9fd0c6c6220a62996f1.zip
pfsense-75fa93b79e7d62d0c573b9fd0c6c6220a62996f1.tar.gz
Fix old queue edit bug where you couldn't edit the first queue via the queue name
Diffstat (limited to 'usr/local/www/firewall_shaper_queues_edit.php')
-rwxr-xr-xusr/local/www/firewall_shaper_queues_edit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/firewall_shaper_queues_edit.php b/usr/local/www/firewall_shaper_queues_edit.php
index a88a473..42483cc 100755
--- a/usr/local/www/firewall_shaper_queues_edit.php
+++ b/usr/local/www/firewall_shaper_queues_edit.php
@@ -47,9 +47,11 @@ if (isset($id)) {
if (!is_numeric($id)) {
$i = 0;
foreach($config['shaper']['queue'] as $queue) {
- if ($queue['name'] == $id)
+ if ($queue['name'] == $id) {
$id = $i;
- $i++;
+ break;
+ } else
+ $i++;
}
}
if ($a_queues[$id]) {
OpenPOWER on IntegriCloud