dhcp: style update

This commit is contained in:
Franco Fichtner 2021-05-28 14:38:36 +02:00
parent 0cc8cd1c74
commit eb429363fa
2 changed files with 2 additions and 4 deletions

View File

@ -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';

View File

@ -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';