From 259a034cec09ec721ba1495e3dddd99c6dbca4a1 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 25 Mar 2019 10:54:11 -0300 Subject: Do now show scheduler icon when scheduler tag is empty Spotted by: Oliveira MaisSecurity --- src/usr/local/www/firewall_rules.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.1