From 29e9dc64cfa2807d4c21b64c7a27802820f29dd4 Mon Sep 17 00:00:00 2001 From: jim-p Date: Sat, 2 May 2009 21:15:13 -0400 Subject: Fix lease display. It should be displaying the last lease for a given IP, not the first. See ticket #1922 --- usr/local/www/diag_dhcp_leases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/diag_dhcp_leases.php b/usr/local/www/diag_dhcp_leases.php index e796837..17b27e0 100755 --- a/usr/local/www/diag_dhcp_leases.php +++ b/usr/local/www/diag_dhcp_leases.php @@ -98,7 +98,7 @@ function remove_duplicate($array, $field) { foreach ($array as $sub) $cmp[] = $sub[$field]; - $unique = array_unique($cmp); + $unique = array_unique(array_reverse($cmp,true)); foreach ($unique as $k => $rien) $new[] = $array[$k]; return $new; -- cgit v1.1