From 9bb7f86b0f64a795e0b2cb6c802287f5bd7343ac Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 31 Jan 2017 11:51:24 +0100 Subject: [PATCH] Apply fix also for overTime graph --- scripts/pi-hole/php/data.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pi-hole/php/data.php b/scripts/pi-hole/php/data.php index 1071e0e3..ad2d88ff 100644 --- a/scripts/pi-hole/php/data.php +++ b/scripts/pi-hole/php/data.php @@ -683,7 +683,7 @@ $exploded = explode(" ", $entry); $domain = trim($exploded[count($exploded) - 3]); - if(isset($gravity_domains[$domain])) + if(ispositive($gravity_domains[$domain])) { if (isset($byTimeAds[$time])) { $byTimeAds[$time]++; @@ -723,7 +723,7 @@ $exploded = explode(" ", $entry); $domain = trim($exploded[count($exploded) - 3]); - if(isset($gravity_domains[$domain])) + if(ispositive($gravity_domains[$domain])) { if (isset($byTimeAds[$time])) { $byTimeAds[$time]++;