diff options
author | Bill Marquette <billm@pfsense.org> | 2005-06-13 03:42:15 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-06-13 03:42:15 +0000 |
commit | 75fa93b79e7d62d0c573b9fd0c6c6220a62996f1 (patch) | |
tree | 81959c9dd0e2923ed05fe50b1c1522c25f93c2f8 /usr/local/www/firewall_shaper_queues_edit.php | |
parent | 69c4bf80411c94433f323ec5ff2df9de0b325d40 (diff) | |
download | pfsense-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-x | usr/local/www/firewall_shaper_queues_edit.php | 6 |
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]) { |