<?php
declare(strict_types=1);
$id = max(0, (int)($_GET['id'] ?? 0));
$target = $id > 0 ? '/organization/shift-types.php?edit=' . $id : '/organization/shift-types.php';
header('Location: ' . $target, true, 302);
exit;
