diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-15 17:47:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-15 17:47:37 +0000 |
commit | e6c6a4f61943a9486acc3e2a68f809f2956adfa2 (patch) | |
tree | 425a8f88307381a177f2f937507cd84b65049dc7 /packages/squid.inc | |
parent | 7b9f0da2579f2642c2e822c18aa675559d84b736 (diff) | |
download | pfsense-packages-e6c6a4f61943a9486acc3e2a68f809f2956adfa2.tar.gz pfsense-packages-e6c6a4f61943a9486acc3e2a68f809f2956adfa2.tar.bz2 pfsense-packages-e6c6a4f61943a9486acc3e2a68f809f2956adfa2.zip |
Attempt to fix these errors when squid has not been configured:
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 532
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 532
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 83
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 83
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 83
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 83
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 83
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 83
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 83
Warning: in_array(): Wrong datatype for second argument in /usr/local/pkg/squid.inc on line 83
Diffstat (limited to 'packages/squid.inc')
-rw-r--r-- | packages/squid.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/squid.inc b/packages/squid.inc index b2514ff4..5a934b1a 100644 --- a/packages/squid.inc +++ b/packages/squid.inc @@ -79,7 +79,10 @@ function squid_chown_recursive($dir, $user, $group) { function squid_is_valid_acl($acl) { global $valid_acls; - + if(!is_array($valid_acls)) + return; + if(!is_array($acl)) + return; return in_array($acl, $valid_acls); } @@ -498,7 +501,8 @@ EOD; function squid_resync_traffic() { global $config, $valid_acls; - + if(!is_array($valid_acls)) + return; $settings = $config['installedpackages']['squidtraffic']['config'][0]; $conf = ''; |