summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-24 21:18:31 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-24 21:18:31 +0000
commit7849bdd562757f77cedc74a120559f70c439f53a (patch)
treeaaddb6c4c0ceef3ef8c25634867d926f922c0a0f /etc
parent171aa30d7b1b456104b9f75b98ac1d08252bc1e1 (diff)
downloadpfsense-7849bdd562757f77cedc74a120559f70c439f53a.zip
pfsense-7849bdd562757f77cedc74a120559f70c439f53a.tar.gz
Make the propper check about arrays that php5 requires.
Diffstat (limited to 'etc')
-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