diff --git a/main/cron/lp_progress_reminder.php b/main/cron/lp_progress_reminder.php index 11e7b260c8..220bf0b309 100644 --- a/main/cron/lp_progress_reminder.php +++ b/main/cron/lp_progress_reminder.php @@ -209,7 +209,7 @@ function notifyUsersForCheckingLpCompletion() if (!empty($courseUsers)) { foreach ($courseUsers as $user) { $toUserId = $user['user_id']; - $lpProgress = $user['progress']; + $lpProgress = (int) $user['progress']; $nbDaysForLpCompletion = $lpItems[$user['lp_id']]; $registrationDate = getUserCourseRegistrationAt($courseId, $toUserId); $notify = isTimeToRemindUser($registrationDate, $nbDaysForLpCompletion);