Fix redirect to last course session access on Gamification mode

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent bf94445e14
commit e7ed13ba14
  1. 2
      main/gamification/my_progress.php

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

Loading…
Cancel
Save