From def9532d6ba5203f4bfeefa2db21b8d4fe006f32 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 21 Dec 2011 23:05:05 +0100 Subject: #44 angeltypes recreated --- includes/pages/user_shifts.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'includes/pages/user_shifts.php') diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 10a96278..57cd8088 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -79,11 +79,11 @@ function user_shifts() { } foreach ($types as $type) { - if (isset ($_REQUEST['type_' . $type['TID']]) && preg_match("/^[0-9]+$/", trim($_REQUEST['type_' . $type['TID']]))) { - $needed_angel_types[$type['TID']] = trim($_REQUEST['type_' . $type['TID']]); + if (isset ($_REQUEST['type_' . $type['id']]) && preg_match("/^[0-9]+$/", trim($_REQUEST['type_' . $type['id']]))) { + $needed_angel_types[$type['id']] = trim($_REQUEST['type_' . $type['id']]); } else { $ok = false; - $msg .= error("Bitte überprüfe die Eingaben für die benötigten Engel des Typs " . $type['Name'] . "."); + $msg .= error("Bitte überprüfe die Eingaben für die benötigten Engel des Typs " . $type['name'] . "."); } } if (array_sum($needed_angel_types) == 0) { @@ -105,8 +105,8 @@ function user_shifts() { foreach ($types as $type) { $angel_types .= template_render('../templates/admin_shifts_angel_types.html', array ( 'id' => $type['TID'], - 'type' => $type['Name'], - 'value' => $needed_angel_types[$type['TID']] + 'type' => $type['name'], + 'value' => $needed_angel_types[$type['id']] )); } return template_render('../templates/user_shifts_edit.html', array ( @@ -206,7 +206,7 @@ function user_shifts() { 'title' => $shift['name'], 'location' => $shift['Name'], 'angel' => $user_text, - 'type' => $type['Name'], + 'type' => $type['name'], 'comment' => "" )); } else { @@ -262,7 +262,7 @@ function user_shifts() { } else $entry_list[] = ($angeltype['count'] - count($entries)) . ' Helfer gebraucht'; - $shift_row .= '' . $angeltype['Name'] . ': '; + $shift_row .= '' . $angeltype['name'] . ': '; $shift_row .= join(", ", $entry_list); $shift_row .= '
'; } -- cgit v1.2.3-54-g00ecf