diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 06:27:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 06:27:18 +0000 |
commit | 2dc44e89334012ad123513b63b77d5925f3df1c8 (patch) | |
tree | 12d9abd5985654bab85e136f36c127ca9e643624 /usr/local/www/system_firmware_settings.php | |
parent | 359f32dc9c391b6864f12e87ded974791b0d129b (diff) | |
download | pfsense-2dc44e89334012ad123513b63b77d5925f3df1c8.zip pfsense-2dc44e89334012ad123513b63b77d5925f3df1c8.tar.gz |
Do not include blank entries in the foreach loop
Diffstat (limited to 'usr/local/www/system_firmware_settings.php')
-rwxr-xr-x | usr/local/www/system_firmware_settings.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php index 2ef4654..4dc457c 100755 --- a/usr/local/www/system_firmware_settings.php +++ b/usr/local/www/system_firmware_settings.php @@ -102,7 +102,8 @@ function enable_altfirmwareurl(enable_over) { <?php foreach($preset_urls_split as $pus) { $pus_text = split("\t", $pus); - echo "<option value='{$pus_text[1]}'>{$pus_text[0]}</option>"; + if($pus_text[0]) + echo "<option value='{$pus_text[1]}'>{$pus_text[0]}</option>"; } ?> </select> |