diff options
-rw-r--r-- | etc/inc/shaper.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index c78d968..f97ec20 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3589,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(); |