tiny amount of php proofreading
This commit is contained in:
@ -9,7 +9,7 @@ date_default_timezone_set('America/Los_Angeles');
|
|||||||
$remove_hosts = [];
|
$remove_hosts = [];
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action'])) {
|
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action'])) {
|
||||||
if ($_POST['action'] === 'remove') {
|
if ($_POST['action'] === 'remove') {
|
||||||
// The Remove form sends a comma-separated string of short_id’s
|
// The Remove form sends a comma-separated string of short_id's
|
||||||
if (!empty($_POST['remove_hosts'])) {
|
if (!empty($_POST['remove_hosts'])) {
|
||||||
$remove_hosts = array_filter(
|
$remove_hosts = array_filter(
|
||||||
explode(',', $_POST['remove_hosts']),
|
explode(',', $_POST['remove_hosts']),
|
||||||
@ -205,7 +205,7 @@ if ($mode === 'drive_health') {
|
|||||||
case 'none':
|
case 'none':
|
||||||
$selectedHosts = [];
|
$selectedHosts = [];
|
||||||
break;
|
break;
|
||||||
// 'apply' – nothing to do; $selectedHosts already contains the posted hosts
|
// 'apply' - nothing to do; $selectedHosts already contains the posted hosts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user