mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Removed obsolete sorting algorithm (datatables will do the sorting for us)
This commit is contained in:
@@ -135,14 +135,6 @@
|
||||
{
|
||||
array_push($dhcp_leases,["MAC"=>$line[1], "IP"=>$line[2], "NAME"=>$line[3]]);
|
||||
}
|
||||
|
||||
// // Sort $dhcpleases by IP (ASC)
|
||||
// usort($dhcp_leases, function ($a, $b) {
|
||||
// $explodea = explode(".",$a["IP"]);
|
||||
// $explodeb = explode(".",$b["IP"]);
|
||||
// if ($explodea == $explodeb) return 0;
|
||||
// return ($explodea < $explodeb) ? -1 : 1;
|
||||
// });
|
||||
}
|
||||
?>
|
||||
<label>DHCP leases</label>
|
||||
|
||||
Reference in New Issue
Block a user