diff --git a/block_overviewmyrolesincourses.php b/block_overviewmyrolesincourses.php index 74ac160..cb74ce9 100644 --- a/block_overviewmyrolesincourses.php +++ b/block_overviewmyrolesincourses.php @@ -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;