From 2840bb61988b242e7833232ad6ba56cd3f924854 Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 27 Dec 2016 19:13:24 +0100 Subject: no signup for shifts for angels that are not arrived --- includes/view/ShiftCalendarShiftRenderer.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/view/ShiftCalendarShiftRenderer.php') 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 .= '
  • ' . button(page_link_to('user_shifts') . '&shift_id=' . $shift['SID'] . '&type_id=' . $angeltype['id'], _("Add more angels"), 'btn-xs') . '
  • '; } -- cgit v1.2.3-54-g00ecf