X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/993450e17195b87dc406c3135ee22dafe9b825fb..d9b4512fae9de17f4bc9d77c7532db6ada9bf8c3:/WEB-INF/lib/ttProjectHelper.class.php diff --git a/WEB-INF/lib/ttProjectHelper.class.php b/WEB-INF/lib/ttProjectHelper.class.php index 59f20223..19e01d35 100644 --- a/WEB-INF/lib/ttProjectHelper.class.php +++ b/WEB-INF/lib/ttProjectHelper.class.php @@ -255,9 +255,9 @@ class ttProjectHelper { if(!in_array($row['user_id'], $users_to_bind)) { // Delete tt_user_project_binds record (safely). ttUserHelper::deleteBind($row['user_id'], $project_id); - } else if (!$row['status']) { + } elseif (!$row['status']) { // If we are here, status of the bind is not active. Memorize such users to update their bind status. - $users_to_update[] = $row['user_id']; // Users we need to update in tt_user_project_binds. + $users_to_update[] = $row['user_id']; // Users we need to update in tt_user_project_binds. } $all_users[] = $row['user_id']; // All users from tt_user_project_binds for project. }