Minor - Avoid notice

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

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

Loading…
Cancel
Save