summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/interfaces_wireless_edit.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_wireless_edit.php b/usr/local/www/interfaces_wireless_edit.php
index 778ee2e..71c4e85 100644
--- a/usr/local/www/interfaces_wireless_edit.php
+++ b/usr/local/www/interfaces_wireless_edit.php
@@ -162,8 +162,10 @@ include("head.inc");
<td width="78%" class="vtable">
<select name="if" class="formselect">
<?php
+ $rowIndex = 0;
foreach ($portlist as $ifn => $ifinfo)
if (preg_match($g['wireless_regex'], $ifn)) {
+ $rowIndex++;
echo "<option value=\"{$ifn}\"";
if ($ifn == $pconfig['if'])
echo " selected=\"selected\"";
@@ -171,6 +173,8 @@ include("head.inc");
echo htmlspecialchars($ifn . " (" . $ifinfo['mac'] . ")");
echo "</option>";
}
+ if ($rowIndex == 0)
+ echo "<option></option>";
?>
</select></td>
</tr>
OpenPOWER on IntegriCloud