Minor - Avoid notice

1.10.x
Yannick Warnier 10 years ago
parent 46819703f4
commit a01a9bb885
  1. 2
      main/gamification/my_progress.php

@ -33,7 +33,9 @@ if (empty($sessionId)) {
); );
$lastCourseAccess = $trackCourseAccessRepository->getLastAccessByUser($user); $lastCourseAccess = $trackCourseAccessRepository->getLastAccessByUser($user);
if ($lastCourseAccess) {
$lastSessionId = $lastCourseAccess->getSessionId(); $lastSessionId = $lastCourseAccess->getSessionId();
}
if (!empty($lastSessionId)) { if (!empty($lastSessionId)) {
$urlWithSession = api_get_self() . '?' . http_build_query([ $urlWithSession = api_get_self() . '?' . http_build_query([

Loading…
Cancel
Save