mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
src: whitespace sweep
This commit is contained in:
parent
4536b239d0
commit
08ba138ebe
@ -238,7 +238,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
}
|
||||
|
||||
$order = ( $_GET['order'] ) ? $_GET['order'] : 'ip';
|
||||
usort($leases,
|
||||
usort($leases,
|
||||
function ($a, $b) use ($order) {
|
||||
$cmp = strnatcasecmp($a[$order], $b[$order]);
|
||||
if ($cmp === 0) {
|
||||
@ -247,7 +247,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
return $cmp;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (!empty($_POST['deleteip']) && is_ipaddr($_POST['deleteip'])) {
|
||||
// delete dhcp lease
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user