diff options
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r-- | etc/inc/shaper.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 870d65b..efd2eed 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3004,7 +3004,7 @@ class dnpipe_class extends dummynet_class { foreach ($bandwidth as $bw) { if ($bw['sched'] != "none") { $time_based_rules = true; - if (is_array($config['schedules']['schedule'])) { + if (is_array($config['schedules']) && is_array($config['schedules']['schedule'])) { foreach ($config['schedules']['schedule'] as $schedule) { if ($bw['bwsched'] == $schedule['name']) { if (filter_get_time_based_rule_status($schedule)) { |