summaryrefslogtreecommitdiff
path: root/includes/pages/user_shifts.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-12-21 23:05:05 +0100
committerPhilip Häusler <msquare@notrademark.de>2011-12-21 23:05:05 +0100
commitdef9532d6ba5203f4bfeefa2db21b8d4fe006f32 (patch)
treea1cb26e4ea52071f9e485270b4829002ce2b50e5 /includes/pages/user_shifts.php
parent5e5443fad6bcd49ee57fda70855dc1e63a52f255 (diff)
#44 angeltypes recreated
Diffstat (limited to 'includes/pages/user_shifts.php')
-rw-r--r--includes/pages/user_shifts.php14
1 files changed, 7 insertions, 7 deletions
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 .= '<b>' . $angeltype['Name'] . ':</b> ';
+ $shift_row .= '<b>' . $angeltype['name'] . ':</b> ';
$shift_row .= join(", ", $entry_list);
$shift_row .= '<br />';
}