summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-01-01 10:30:51 -0800
committerNOYB <Al_Stu@Frontier.com>2016-01-01 10:30:51 -0800
commit710f12d2a4f5a65648482d373d29b51c3034a109 (patch)
tree7bcd240e7a8470976c19660e9fb9bed2ae9366dc /src/usr/local/www
parent8224a71ed8eb6b98eb790673b95703311f4586c8 (diff)
downloadpfsense-710f12d2a4f5a65648482d373d29b51c3034a109.zip
pfsense-710f12d2a4f5a65648482d373d29b51c3034a109.tar.gz
HTML Compliance - Services Status Widget
Element option without attribute label must not be empty. <option selected></option>
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/widgets/widgets/services_status.widget.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr/local/www/widgets/widgets/services_status.widget.php b/src/usr/local/www/widgets/widgets/services_status.widget.php
index 8899886..bb64dfe 100644
--- a/src/usr/local/www/widgets/widgets/services_status.widget.php
+++ b/src/usr/local/www/widgets/widgets/services_status.widget.php
@@ -130,9 +130,15 @@ if (count($services) > 0) {
<label for="inputPassword3" class="col-sm-3 control-label">Hidden services</label>
<div class="col-sm-6">
<select multiple id="servicestatusfilter" name="servicestatusfilter[]" class="form-control">
- <?php foreach ($services as $service): ?>
+ <?php
+ foreach ($services as $service):
+ if (!empty(trim($service['name'])) || is_numeric($service['name'])) {
+ ?>
<option <?=(in_array($service['name'], $skipservices)?'selected':'')?>><?=$service['name']?></option>
- <?php endforeach; ?>
+ <?php
+ }
+ endforeach;
+ ?>
</select>
</div>
</div>
OpenPOWER on IntegriCloud