@@ -51,14 +51,14 @@ class email extends libbase {
5151 * - that a rollback for this course is necessary.
5252 * @param int $processid of the respective process.
5353 * @param int $instanceid of the step instance.
54- * @param int $course to be processed.
54+ * @param object $course to be processed.
5555 * @return step_response
5656 * @throws \coding_exception
5757 * @throws \dml_exception
5858 */
5959 public function process_course ($ processid , $ instanceid , $ course ) {
6060 global $ DB ;
61- $ coursecontext = \context_course::instance ($ course );
61+ $ coursecontext = \context_course::instance ($ course-> id );
6262 $ userstobeinformed = get_enrolled_users ($ coursecontext , 'lifecyclestep/email:preventdeletion ' , 0 ,
6363 'u.id ' , null , null , null , true );
6464 foreach ($ userstobeinformed as $ user ) {
@@ -79,7 +79,7 @@ public function process_course($processid, $instanceid, $course) {
7979 * - that a rollback for this course is necessary.
8080 * @param int $processid of the respective process.
8181 * @param int $instanceid of the step instance.
82- * @param int $course to be processed.
82+ * @param object $course to be processed.
8383 * @return step_response
8484 * @throws \coding_exception
8585 * @throws \dml_exception
0 commit comments