Check IP field not entire object

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-06-15 15:58:12 +02:00
parent 764a0b1a3a
commit d2ce57b48b

View File

@@ -82,7 +82,7 @@ if(isset($_GET["network"]) && $auth)
while($ips !== false && $ip = $ips->fetchArray(SQLITE3_ASSOC))
array_push($res["ip"],$ip["ip"]);
// If the network_addresses table does not contain any IPs for this client, we use the IP stored in the network table
if(count($res) < 1)
if(count($res["ip"]) < 1)
array_push($res["ip"],$resip);
array_push($network, $res);
}