X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/278a83090d6bf9d6351a449ba045323088f678aa..23ab58c659b527891568a385d8762bf3e6561adf:/mobile/users.php diff --git a/mobile/users.php b/mobile/users.php index c3c6a982..2c6bf6eb 100644 --- a/mobile/users.php +++ b/mobile/users.php @@ -47,7 +47,7 @@ if($user->canManageTeam()) { // Check each active user if they have an uncompleted time entry. foreach ($active_users as $key => $user) { // Turn value from database into boolean. - $has_uncompleted_entry = boolval(ttTimeHelper::getUncompleted($user['id'])); + $has_uncompleted_entry = (bool) ttTimeHelper::getUncompleted($user['id']); // Add to current user in $active_users array. $active_users[$key]['has_uncompleted_entry'] = $has_uncompleted_entry; }