Closed moumitahalder closed 1 year ago
"Thank you for your payment! Unfortunately your payment has not yet been fully processed, and you are not yet registered to enter the course ......"
Please navigate to /blocks/iomad_company_admin/company_course_create_form.php and update a line of code that appears twice..
So you will change this -> if (is_enrolled($context, null, '', true)) to this -> if (is_enrolled($context, $user->id, '', true)).
The is_enrolled function is missing the user id meaning it will always return false. Good luck smile
"Thank you for your payment! Unfortunately your payment has not yet been fully processed, and you are not yet registered to enter the course ......"
Please navigate to /blocks/iomad_company_admin/company_course_create_form.php and update a line of code that appears twice..
So you will change this -> if (is_enrolled($context, null, '', true)) to this -> if (is_enrolled($context, $user->id, '', true)).
The is_enrolled function is missing the user id meaning it will always return false. Good luck smile