diff --git a/scripts/pi-hole/php/groups.php b/scripts/pi-hole/php/groups.php index 5a1b3ae2..15613854 100644 --- a/scripts/pi-hole/php/groups.php +++ b/scripts/pi-hole/php/groups.php @@ -256,7 +256,8 @@ elseif($_REQUEST['action'] == "get_unconfigured_clients") // Loop over results, remove already configured clients while(($res = $query->fetchArray(SQLITE3_ASSOC)) != false) { - if(($idx = array_search($res["ip"],$ips)) !== false) + $idx = array_search($res["ip"], $ips); + if($idx != false) { unset($ips[$idx]); }