From 41f3a80c36da385a4fcc828243ae1e4c50b09eaf Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 16 Dec 2016 13:28:58 +0100 Subject: [PATCH] codacy fix: added missing `global` statements --- data.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data.php b/data.php index 70eaed82..6320c7c2 100644 --- a/data.php +++ b/data.php @@ -110,7 +110,7 @@ } function getForwardDestinations() { - global $log; + global $log, $setupVars; $forwards = getForwards($log); $destinations = array(); foreach ($forwards as $forward) { @@ -148,7 +148,7 @@ } function getQuerySources() { - global $log; + global $log, $setupVars; $dns_queries = getDnsQueries($log); $sources = array(); foreach($dns_queries as $query) { @@ -186,7 +186,7 @@ function setShowBlockedPermitted() { - global $showBlocked, $showPermitted; + global $showBlocked, $showPermitted, $setupVars; if(isset($setupVars["API_QUERY_LOG_SHOW"])) { if($setupVars["API_QUERY_LOG_SHOW"] === "all")