summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/shaper.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 7ce0bee..c78d968 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();
OpenPOWER on IntegriCloud