summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-12-29 14:21:20 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-12-29 14:21:20 +0100
commit46f80fbed262a30ba31e1d031e2512f278352e12 (patch)
treea957830a14fa00967a6ff54eb06b11fcac7a53aa
parente4a06fb45743dbea048778fab2a95f274c3f81bb (diff)
Angeltypes: Fixed error on angeltype creation
-rw-r--r--includes/controller/angeltypes_controller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php
index b06a258c..cf70a7ef 100644
--- a/includes/controller/angeltypes_controller.php
+++ b/includes/controller/angeltypes_controller.php
@@ -199,15 +199,16 @@ function angeltype_controller()
$tab = 1;
}
+ $isSupporter = !is_null($user_angeltype) && $user_angeltype['supporter'];
return [
sprintf(__('Team %s'), $angeltype['name']),
AngelType_view(
$angeltype,
$members,
$user_angeltype,
- auth()->can('admin_user_angeltypes') || $user_angeltype['supporter'],
+ auth()->can('admin_user_angeltypes') || $isSupporter,
auth()->can('admin_angel_types'),
- $user_angeltype['supporter'],
+ $isSupporter,
$user_driver_license,
$user,
$shiftsFilterRenderer,