diff --git a/public/main/my_space/myStudents.php b/public/main/my_space/myStudents.php index f3b0139acf..913cb733ce 100644 --- a/public/main/my_space/myStudents.php +++ b/public/main/my_space/myStudents.php @@ -27,7 +27,7 @@ $export = $_GET['export'] ?? false; $sessionId = isset($_GET['sid']) ? (int) $_GET['sid'] : 0; $action = $_GET['action'] ?? ''; $origin = api_get_origin(); -$courseId = isset($_GET['cid']) ? (int) $_GET['cid'] : ''; +$courseId = isset($_GET['cid']) ? (int) $_GET['cid'] : 0; $course = api_get_course_entity($courseId); $courseCode = ''; if (null !== $course) {