aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-01-13 19:50:55 +0200
committerWarren Baker <warren@decoy.co.za>2011-01-13 19:50:55 +0200
commit2ad1f46050d817ddc9fedfc7e58442a779b16b6e (patch)
treeaf2493c8579673f898d1646bbe5d5d9ab5010851 /config
parent44281487dee73f86437e6f362f1872a23921019b (diff)
downloadpfsense-packages-2ad1f46050d817ddc9fedfc7e58442a779b16b6e.tar.gz
pfsense-packages-2ad1f46050d817ddc9fedfc7e58442a779b16b6e.tar.bz2
pfsense-packages-2ad1f46050d817ddc9fedfc7e58442a779b16b6e.zip
Correct use of !is_array() not !array() *chortle*
Diffstat (limited to 'config')
-rw-r--r--config/unbound/unbound.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index bce0219e..218f750c 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -39,7 +39,7 @@ function unbound_initial_setup() {
// Make sure read-write
conf_mount_rw();
- if (!array($config['installedpackages']['unbound']['config']))
+ if (!is_array($config['installedpackages']['unbound']['config']))
$config['installedpackages']['unbound']['config'] = array();
$unbound_config = &$config['installedpackages']['unbound']['config'][0];
@@ -252,7 +252,7 @@ function unbound_get_network_interface_addresses($subnet=false, $mask=false) {
function unbound_acls_config() {
global $config;
- if(array($config['installedpackages']['unboundacls']['config'])) {
+ if(is_array($config['installedpackages']['unboundacls']['config'])) {
$unbound_acls = $config['installedpackages']['unboundacls']['config'];
$unboundcfg = "";
foreach($unbound_acls as $unbound_acl){
@@ -270,7 +270,7 @@ function unbound_acls_config() {
function unbound_resync_config() {
global $config, $g;
- if (!array($config['installedpackages']['unbound']['config']))
+ if (!is_array($config['installedpackages']['unbound']['config']))
$config['installedpackages']['unbound']['config'] = array();
$unbound_config = &$config['installedpackages']['unbound']['config'][0];