diff options
author | jim-p <jim@pingle.org> | 2009-05-02 21:15:13 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-05-03 13:35:07 -0400 |
commit | 29e9dc64cfa2807d4c21b64c7a27802820f29dd4 (patch) | |
tree | 6979dfd9e28ccc88d8dfeefc9e751b137ffbf4c2 | |
parent | 55f5c311c870711bcb88499ac477d7e512356535 (diff) | |
download | pfsense-29e9dc64cfa2807d4c21b64c7a27802820f29dd4.zip pfsense-29e9dc64cfa2807d4c21b64c7a27802820f29dd4.tar.gz |
Fix lease display. It should be displaying the last lease for a given IP, not the first. See ticket #1922
-rwxr-xr-x | usr/local/www/diag_dhcp_leases.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |