summaryrefslogtreecommitdiff
path: root/includes/view/ShiftCalendarShiftRenderer.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-12-27 19:13:24 +0100
committermsquare <msquare@notrademark.de>2016-12-27 19:13:24 +0100
commit2840bb61988b242e7833232ad6ba56cd3f924854 (patch)
tree741c5d5e2b4db350f290d271a1d842e8cabf8188 /includes/view/ShiftCalendarShiftRenderer.php
parentd0e924ba25d288ce9f89373adeaba58185f855bd (diff)
no signup for shifts for angels that are not arrived
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index 50b1bf1b..e3ceb47f 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -78,6 +78,10 @@ class ShiftCalendarShiftRenderer {
}
$html .= $angeltype_html;
}
+ if ($shift_signup_state == null) {
+ $shift_signup_state = new ShiftSignupState(ShiftSignupState::SHIFT_ENDED, 0);
+ }
+
if (in_array('user_shifts_admin', $privileges)) {
$html .= '<li class="list-group-item">' . button(page_link_to('user_shifts') . '&amp;shift_id=' . $shift['SID'] . '&amp;type_id=' . $angeltype['id'], _("Add more angels"), 'btn-xs') . '</li>';
}