diff options
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r-- | etc/inc/shaper.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 7ce0bee..f97ec20 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3549,6 +3549,10 @@ function read_altq_config() { global $altq_list_queues, $config; $path = array(); + if (!is_array($config['shaper'])) + $config['shaper'] = array(); + if (!is_array($config['shaper']['queue'])) + $config['shaper']['queue'] = array(); $a_int = &$config['shaper']['queue']; $altq_list_queues = array(); @@ -3585,6 +3589,10 @@ function read_dummynet_config() { $dnqueuenumber = 1; $dnpipenumber = 1; + if (!is_array($config['dnshaper'])) + $config['dnshaper'] = array(); + if (!is_array($config['dnshaper']['queue'])) + $config['dnshaper']['queue'] = array(); $a_int = &$config['dnshaper']['queue']; $dummynet_pipe_list = array(); |