diff options
author | N0YB <Al_Stu@Frontier.com> | 2014-06-16 15:14:16 -0700 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2014-06-16 15:14:16 -0700 |
commit | 2464e353414a60a867cba82837e34d4e37e0b075 (patch) | |
tree | 67acce6209c79b79a800cc71e2375ff3cad1e68b /usr/local/www/system_advanced_admin.php | |
parent | b4e9a4da0f438888abfd7f050964776d5bdf463e (diff) | |
download | pfsense-2464e353414a60a867cba82837e34d4e37e0b075.zip pfsense-2464e353414a60a867cba82837e34d4e37e0b075.tar.gz |
XHTML Compliance - System Menu
Enforce select option
Diffstat (limited to 'usr/local/www/system_advanced_admin.php')
-rw-r--r-- | usr/local/www/system_advanced_admin.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index 5390ee9..39c0423 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -355,13 +355,18 @@ function prot_change() { <td width="78%" class="vtable"> <select name="ssl-certref" id="ssl-certref" class="formselect"> <?php + $rowIndex = 0; foreach($a_cert as $cert): $selected = ""; if ($pconfig['ssl-certref'] == $cert['refid']) $selected = "selected=\"selected\""; + $rowIndex++; ?> <option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'];?></option> - <?php endforeach; ?> + <?php endforeach; + if ($rowIndex == 0) + echo "<option></option>"; + ?> </select> </td> </tr> |