Skip to content

Commit

Permalink
Merge pull request #746 from ucl-isd/object
Browse files Browse the repository at this point in the history
forcing array type before using current()
  • Loading branch information
jack-tii authored Jul 25, 2024
2 parents 944c939 + 96186b9 commit 9e436b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ function turnitintooltwo_init_browser_assignment_table($tiicourseid) {
);

if (!empty($turnitincourse)) {
$course = current($turnitincourse);
$course = current((array)$turnitincourse);
$coursedetails = turnitintooltwo_assignment::get_course_data($course->courseid, $course->course_type);
$courseid = $course->courseid;
$coursetitle = $coursedetails->fullname;
Expand Down

0 comments on commit 9e436b2

Please sign in to comment.