Revision 4c3669ea
Added by Jim Pingle almost 7 years ago
src/usr/local/www/firewall_schedule.php | ||
---|---|---|
41 | 41 |
|
42 | 42 |
$pgtitle = array(gettext("Firewall"), gettext("Schedules")); |
43 | 43 |
|
44 |
if (!is_array($config['schedules'])) { |
|
45 |
$config['schedules'] = array(); |
|
46 |
} |
|
47 |
if (!is_array($config['schedules']['schedule'])) { |
|
48 |
$config['schedules']['schedule'] = array(); |
|
49 |
} |
|
50 |
|
|
44 |
init_config_arr(array('schedules', 'schedule')); |
|
51 | 45 |
$a_schedules = &$config['schedules']['schedule']; |
52 | 46 |
|
53 | 47 |
if ($_POST['act'] == "del") { |
Also available in: Unified diff
Init schedules before use. Fixes #9009