mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
dhcp: style update
This commit is contained in:
parent
0cc8cd1c74
commit
eb429363fa
@ -244,8 +244,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET['order']) &&
|
||||
in_array($_GET['order'], ['int', 'ip', 'mac', 'hostname', 'descr', 'start', 'end', 'online', 'act'])) {
|
||||
if (isset($_GET['order']) && in_array($_GET['order'], ['int', 'ip', 'mac', 'hostname', 'descr', 'start', 'end', 'online', 'act'])) {
|
||||
$order = $_GET['order'];
|
||||
} else {
|
||||
$order = 'ip';
|
||||
|
||||
@ -306,8 +306,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$leases[] = $slease;
|
||||
}
|
||||
|
||||
if (isset($_GET['order']) &&
|
||||
in_array($_GET['order'], ['int', 'ip', 'iaid', 'duid', 'hostname', 'descr', 'start', 'end', 'online', 'act'])) {
|
||||
if (isset($_GET['order']) && in_array($_GET['order'], ['int', 'ip', 'iaid', 'duid', 'hostname', 'descr', 'start', 'end', 'online', 'act'])) {
|
||||
$order = $_GET['order'];
|
||||
} else {
|
||||
$order = 'ip';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user