summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-08-21 01:28:47 +0200
committermsquare <msquare@notrademark.de>2019-08-21 01:28:47 +0200
commit548d7317b43a385febd2f43f3ee7f80fa76d5ac0 (patch)
treec176eb68c5282b065f410c7e42910ae0193258a3 /includes/view
parent8139f2fb4ecbdc94cd5fec9d40cf0316730196c9 (diff)
redo fix shift view bug
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/Shifts_view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php
index 0c15b159..133ceb06 100644
--- a/includes/view/Shifts_view.php
+++ b/includes/view/Shifts_view.php
@@ -80,7 +80,7 @@ function Shift_signup_button_render($shift, $angeltype, $user_angeltype = null)
$user_angeltype = UserAngelType_by_User_and_AngelType(auth()->user()->id, $angeltype);
}
- if ($angeltype['shift_signup_state']->isSignupAllowed()) {
+ if (isset($angeltype['shift_signup_state']) && $angeltype['shift_signup_state']->isSignupAllowed()) {
return button(shift_entry_create_link($shift, $angeltype), __('Sign up'));
} elseif (empty($user_angeltype)) {
return button(