diff options
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 5b0e636..35e8d1e 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -726,11 +726,12 @@ include("head.inc"); //build list of schedules $schedules = array(); $schedules[] = "none";//leave none to leave rule enabled all the time - foreach ($config['schedules']['schedule'] as $schedule) - { - if ($schedule['name'] <> "") - $schedules[] = $schedule['name']; - } + if(is_array($config['schedules']['schedule'])) { + foreach ($config['schedules']['schedule'] as $schedule) { + if ($schedule['name'] <> "") + $schedules[] = $schedule['name']; + } + } ?> <tr> <td width="22%" valign="top" class="vncell">Schedule</td> |