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