tabs to spaces

This commit is contained in:
ljm42 2017-10-24 08:56:35 -07:00 committed by GitHub
parent c030c3fa18
commit 7b84bc03b0

View File

@ -240,10 +240,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$order = ( $_GET['order'] ) ? $_GET['order'] : 'ip';
usort($leases,
function ($a, $b) use ($order) {
$cmp = strnatcasecmp($a[$order], $b[$order]);
if ($cmp === 0) {
$cmp = strnatcasecmp($a['ip'], $b['ip']);
}
$cmp = strnatcasecmp($a[$order], $b[$order]);
if ($cmp === 0) {
$cmp = strnatcasecmp($a['ip'], $b['ip']);
}
return $cmp;
}
);