diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-08 22:15:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-08 22:15:35 +0000 |
commit | 5e2dee076a598c1b51edc0041c9c3a494f482a02 (patch) | |
tree | b964752a64719919fd6136445f4fb1bbf8290c3c /usr/local/www/firewall_shaper_queues_edit.php | |
parent | 480d71dc6b0d7427566c5abf6bd41b2e5d9e6ff7 (diff) | |
download | pfsense-5e2dee076a598c1b51edc0041c9c3a494f482a02.zip pfsense-5e2dee076a598c1b51edc0041c9c3a494f482a02.tar.gz |
Correct the logic that decides if a queue is a parent.
Diffstat (limited to 'usr/local/www/firewall_shaper_queues_edit.php')
-rwxr-xr-x | usr/local/www/firewall_shaper_queues_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/firewall_shaper_queues_edit.php b/usr/local/www/firewall_shaper_queues_edit.php index 024d9a7..06514e8 100755 --- a/usr/local/www/firewall_shaper_queues_edit.php +++ b/usr/local/www/firewall_shaper_queues_edit.php @@ -255,16 +255,16 @@ if ($_POST) { <td width="78%" class="vtable"> <select id="childqueue" name="childqueue"> <?php - if(isset($pconfig['shaper']['childqueue'])) + if(is_subqueue($config['shaper']['queue'])) echo "<option value=\"" . $pconfig['shaper']['childqueue'] . "\">" . $pconfig['shaper']['childqueue'] . "</option>"; else echo "<option value=\"\"></option>"; - if (is_array($config['shaper']['queue'])) { + if (is_array($config['shaper']['queue'])) { foreach ($config['shaper']['queue'] as $queue) { - if(is_subqueue($queue['name']) == 1) + if($queue['parentqueue'] <> "") echo "<option value=\"" . $queue['name'] . "\">" . $queue['name'] . "</option>"; } - } + } ?> </select> </td> |