shift name is now optional
This commit is contained in:
parent
ddf309717b
commit
0eb9830818
|
@ -6,7 +6,6 @@ function admin_shifts() {
|
||||||
$msg = "";
|
$msg = "";
|
||||||
$ok = true;
|
$ok = true;
|
||||||
|
|
||||||
$name = "";
|
|
||||||
$rid = 0;
|
$rid = 0;
|
||||||
$start = DateTime :: createFromFormat("Y-m-d H:i", date("Y-m-d") . " 00:00")->getTimestamp();
|
$start = DateTime :: createFromFormat("Y-m-d H:i", date("Y-m-d") . " 00:00")->getTimestamp();
|
||||||
$end = $start +24 * 60 * 60;
|
$end = $start +24 * 60 * 60;
|
||||||
|
@ -26,13 +25,8 @@ function admin_shifts() {
|
||||||
$needed_angel_types[$type['TID']] = 0;
|
$needed_angel_types[$type['TID']] = 0;
|
||||||
|
|
||||||
if (isset ($_REQUEST['preview'])) {
|
if (isset ($_REQUEST['preview'])) {
|
||||||
// Name/Bezeichnung der Schicht, darf nicht leer sein
|
// Name/Bezeichnung der Schicht, darf leer sein
|
||||||
if (isset ($_REQUEST['name']) && strlen($_REQUEST['name']) > 0)
|
|
||||||
$name = strip_request_item('name');
|
$name = strip_request_item('name');
|
||||||
else {
|
|
||||||
$ok = false;
|
|
||||||
$msg .= error("Gib bitte einen Namen für die Schicht(en) an.");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Auswahl der sichtbaren Locations für die Schichten
|
// Auswahl der sichtbaren Locations für die Schichten
|
||||||
if (isset ($_REQUEST['rid']) && preg_match("/^[0-9]+$/", $_REQUEST['rid']) && isset ($room_array[$_REQUEST['rid']]))
|
if (isset ($_REQUEST['rid']) && preg_match("/^[0-9]+$/", $_REQUEST['rid']) && isset ($room_array[$_REQUEST['rid']]))
|
||||||
|
|
Loading…
Reference in New Issue