diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php index 3f04325b..8387179a 100644 --- a/includes/pages/admin_shifts.php +++ b/includes/pages/admin_shifts.php @@ -29,7 +29,7 @@ function admin_shifts() $session = session(); $start = Carbon::createTimestampFromDatetime(date('Y-m-d') . 'T00:00'); $end = $start; - $mode = ''; + $mode = 'multi'; $angelmode = 'manually'; $length = ''; $change_hours = []; diff --git a/includes/sys_form.php b/includes/sys_form.php index 46698a1d..ff73f53f 100644 --- a/includes/sys_form.php +++ b/includes/sys_form.php @@ -140,10 +140,13 @@ function form_checkbox($name, $label, $selected, $value = 'checked', $html_id = */ function form_radio($name, $label, $selected, $value) { + $value = htmlspecialchars((string)$value); + $id = preg_replace('/\s/', '-', $name . '_' . $value); + return '
' - . '' - . '
'; }