tiny amount of php proofreading

This commit is contained in:
2026-04-19 18:15:29 -07:00
parent 8437fa6d9c
commit 18ed5bd3a2

View File

@ -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_ids // 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
} }
} }
} }