diff options
author | Ermal <eri@pfsense.org> | 2012-10-18 09:04:22 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-10-18 09:04:22 +0000 |
commit | 2ed21904ba8aea8e9f8490513d355423fdf12fd2 (patch) | |
tree | f61b1a8e5c192abc555b19c7f2743da36137b995 /etc/inc | |
parent | d96b96b92886013eeaf29ce00f8e1ff9cd5de089 (diff) | |
download | pfsense-2ed21904ba8aea8e9f8490513d355423fdf12fd2.zip pfsense-2ed21904ba8aea8e9f8490513d355423fdf12fd2.tar.gz |
Check if there is any configuration present before going through it.
Diffstat (limited to 'etc/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)) { |