summaryrefslogtreecommitdiff
path: root/includes/view/User_view.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/view/User_view.php')
-rw-r--r--includes/view/User_view.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index f8160765..1b3c0daf 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -1,6 +1,7 @@
<?php
use Carbon\Carbon;
+use Engelsystem\Models\User\User;
/**
* Renders user settings page
@@ -279,6 +280,14 @@ function Users_table_header_link($column, $label, $order_by)
*/
function User_shift_state_render($user)
{
+ if ($user instanceof User) {
+ $userModel = $user;
+ $user = [
+ 'Gekommen' => $userModel->state->arrived,
+ 'UID' => $user->id,
+ ];
+ }
+
if (!$user['Gekommen']) {
return '';
}