Skip to content

Commit

Permalink
fix accessing toString() incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
my-curiosity committed Jan 5, 2024
1 parent 8a9be06 commit a951c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block_overviewmyrolesincourses.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ public function get_courses_enroled_with_roleid(
// Add additional information like url to the course, ...
$url = new moodle_url('/course/view.php', ['id' => $enroledcourse->id]);
$urldelete = new moodle_url('/course/delete.php', ['id' => $enroledcourse->id]);
$enroledcoursewithrole->url = $url.__toString();
$enroledcoursewithrole->urldelete = $urldelete.__toString();
$enroledcoursewithrole->url = $url->__toString();
$enroledcoursewithrole->urldelete = $urldelete->__toString();
$enroledcoursewithrole->dimmed = $dimmed;
$enroledcoursewithrole->duration = $this->create_duration($enroledcourse)->duration;
$enroledcoursewithrole->durationstatus = $this->create_duration($enroledcourse)->durationstatus;
Expand Down

0 comments on commit a951c38

Please sign in to comment.