summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-05-02 21:15:13 -0400
committerjim-p <jim@pingle.org>2009-05-03 13:35:07 -0400
commit29e9dc64cfa2807d4c21b64c7a27802820f29dd4 (patch)
tree6979dfd9e28ccc88d8dfeefc9e751b137ffbf4c2 /usr
parent55f5c311c870711bcb88499ac477d7e512356535 (diff)
downloadpfsense-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
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_dhcp_leases.php2
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;
OpenPOWER on IntegriCloud