diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-07-24 21:18:31 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-07-24 21:18:31 +0000 |
commit | 7849bdd562757f77cedc74a120559f70c439f53a (patch) | |
tree | aaddb6c4c0ceef3ef8c25634867d926f922c0a0f /etc | |
parent | 171aa30d7b1b456104b9f75b98ac1d08252bc1e1 (diff) | |
download | pfsense-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.inc | 4 |
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(); |