From 7fcb875f65d521f9e2e4c033b35781f3c6c112cb Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 21 Dec 2016 14:23:40 +0100 Subject: [PATCH] Minor tweaks --- scripts/pi-hole/php/data.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/data.php b/scripts/pi-hole/php/data.php index b7361b06..ffc06b4b 100644 --- a/scripts/pi-hole/php/data.php +++ b/scripts/pi-hole/php/data.php @@ -19,7 +19,7 @@ // blacklist.txt is optional and might not be there $blackListFile = "/etc/pihole/blacklist.txt"; - if(file_exists($blacklistFile)) + if(file_exists($blackListFile)) { $blacklist = new \SplFileObject($blackListFile); } @@ -258,6 +258,7 @@ /******** Private Members ********/ function gravityCount() { + global $blackListFile; $preEventHorizon = exec("grep -c ^ /etc/pihole/list.preEventHorizon"); if(file_exists($blackListFile)) {