summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-07-05 09:39:28 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-07-05 09:39:28 +0000
commitcca8d74eba1ea3162a10997133fcdacd89feca9b (patch)
tree3a277037fd587c0e5ac262dc0335edfb319e2f36 /usr/local
parente11202d5440f22de61e06fae5d5cfd197b62b1d6 (diff)
downloadpfsense-cca8d74eba1ea3162a10997133fcdacd89feca9b.zip
pfsense-cca8d74eba1ea3162a10997133fcdacd89feca9b.tar.gz
Move none queue item to top of the list.
Check for empty queue names
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 0b4850e..391956d 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -1017,7 +1017,12 @@ on another rule.")?>
$qlist =& get_unique_queue_list();
if (!is_array($qlist))
$qlist = array();
+ echo "<option value=\"none\"";
+ if (!$qselected) echo " SELECTED";
+ echo " >none</option>";
foreach ($qlist as $q => $qkey) {
+ if($q == "")
+ continue;
echo "<option value=\"$q\"";
if ($q == $pconfig['ackqueue']) {
$qselected = 1;
@@ -1025,15 +1030,17 @@ on another rule.")?>
}
echo ">{$q}</option>";
}
- echo "<option value=\"none\"";
- if (!$qselected) echo " SELECTED";
- echo " >none</option>";
?>
</select> /
<select name="defaultqueue">
<?php
$qselected = 0;
+ echo "<option value=\"none\"";
+ if (!$qselected) echo " SELECTED";
+ echo " >none</option>";
foreach ($qlist as $q => $qkey) {
+ if($q == "")
+ continue;
echo "<option value=\"$q\"";
if ($q == $pconfig['defaultqueue']) {
$qselected = 1;
@@ -1041,9 +1048,6 @@ on another rule.")?>
}
echo ">{$q}</option>";
}
- echo "<option value=\"none\"";
- if (!$qselected) echo " SELECTED";
- echo " >none</option>";
?>
</select>
<br />
OpenPOWER on IntegriCloud