From 33d6f6da8fc9e8e1cafe63bf285ed2b41e0aca28 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 2 Jan 2017 11:29:30 +0100 Subject: [PATCH] Exit TopLists loop early, but not too early --- scripts/pi-hole/php/data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/data.php b/scripts/pi-hole/php/data.php index 8d55d9f1..73176ca0 100644 --- a/scripts/pi-hole/php/data.php +++ b/scripts/pi-hole/php/data.php @@ -148,7 +148,7 @@ $topDomains[$key] = $value; $domaincounter++; } - else + elseif($domaincounter >= $qty && $adcounter >= $qty) { // Already collected enough entries for both lists // Exit loop early