diff options
author | Renato Botelho <garga@FreeBSD.org> | 2019-03-25 10:54:11 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2019-03-25 10:54:20 -0300 |
commit | 259a034cec09ec721ba1495e3dddd99c6dbca4a1 (patch) | |
tree | bf32262d17acc6774d700939b8ead719297bb2b2 /src/usr/local/www | |
parent | e788a9e2abd4cd6738b4803fb6d1ffaa6943440d (diff) | |
download | pfsense-259a034cec09ec721ba1495e3dddd99c6dbca4a1.zip pfsense-259a034cec09ec721ba1495e3dddd99c6dbca4a1.tar.gz |
Do now show scheduler icon when scheduler tag is empty
Spotted by: Oliveira MaisSecurity <oliveira@maissecurity.com.br>
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/firewall_rules.php | 3 |
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) { |