Skip to content

Commit

Permalink
WebService: Fix set c_id in $_SESSION
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Aug 19, 2021
1 parent 5ec4a32 commit 480fa6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/inc/lib/webservices/Rest.php
Expand Up @@ -174,6 +174,10 @@ public function setCourse($id)
}

$this->course = $course;

ChamiloSession::write('_real_cid', $course->getId());
ChamiloSession::write('_cid', $course->getCode());
ChamiloSession::write('_course', api_get_course_info($course->getCode()));
}

/**
Expand Down

0 comments on commit 480fa6d

Please sign in to comment.