From: anuko Date: Sun, 16 Oct 2016 19:25:55 +0000 (+0000) Subject: Replaced boolval calls to cast to bool so that the app works with PHP 5.2. X-Git-Tag: timetracker_1.19-1~1631 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=23ab58c659b527891568a385d8762bf3e6561adf;p=timetracker.git Replaced boolval calls to cast to bool so that the app works with PHP 5.2. --- 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; } diff --git a/users.php b/users.php index a841818d..cd60b893 100644 --- a/users.php +++ b/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; }