We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4681970 commit a01a9bbCopy full SHA for a01a9bb
main/gamification/my_progress.php
@@ -33,7 +33,9 @@
33
);
34
35
$lastCourseAccess = $trackCourseAccessRepository->getLastAccessByUser($user);
36
- $lastSessionId = $lastCourseAccess->getSessionId();
+ if ($lastCourseAccess) {
37
+ $lastSessionId = $lastCourseAccess->getSessionId();
38
+ }
39
40
if (!empty($lastSessionId)) {
41
$urlWithSession = api_get_self() . '?' . http_build_query([
0 commit comments