aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/squid.inc8
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 = '';