mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
Remove assignment from if-statement to please CodeFactor.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user