summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2019-03-25 10:54:11 -0300
committerRenato Botelho <garga@FreeBSD.org>2019-03-25 10:54:20 -0300
commit259a034cec09ec721ba1495e3dddd99c6dbca4a1 (patch)
treebf32262d17acc6774d700939b8ead719297bb2b2
parente788a9e2abd4cd6738b4803fb6d1ffaa6943440d (diff)
downloadpfsense-259a034cec09ec721ba1495e3dddd99c6dbca4a1.zip
pfsense-259a034cec09ec721ba1495e3dddd99c6dbca4a1.tar.gz
Do now show scheduler icon when scheduler tag is empty
Spotted by: Oliveira MaisSecurity <oliveira@maissecurity.com.br>
-rw-r--r--src/usr/local/www/firewall_rules.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php
index a6fea90..75a13f4 100644
--- a/src/usr/local/www/firewall_rules.php
+++ b/src/usr/local/www/firewall_rules.php
@@ -513,7 +513,8 @@ foreach ($a_filter as $filteri => $filterent):
if ($config['schedules']['schedule'] != "" && is_array($config['schedules']['schedule'])) {
$idx = 0;
foreach ($a_schedules as $schedule) {
- if ($schedule['name'] == $filterent['sched']) {
+ if (!empty($schedule['name']) &&
+ $schedule['name'] == $filterent['sched']) {
$schedstatus = filter_get_time_based_rule_status($schedule);
foreach ($schedule['timerange'] as $timerange) {
OpenPOWER on IntegriCloud