Don't use $courseid in require_login(). User may want to see old orders. Course enrolment is not required.
Don't use $courseid in require_login(). User may want to see old orders. Course enrolment is not required.

dilawar/moodle