by Perial Dupont.
I want to delete courses in my local moodle 4.1.2, but i got an error. As in the image below.
the function delete_course() should take a string as parameter like ($course->id), but it receive the array $course instead. I don't know why it's like that.