- Posts: 5
Automatically enroll
- Dalton
- Topic Author
- Offline
- New Member
-
Less
More
2 months 2 weeks ago #1
by Dalton
Automatically enroll was created by Dalton
Hello!
I'm using Joomdle 3.x. When I view the Course Listing, it shows the following error if the user is not enrolled in the course:
Warning: foreach() argument must be of type array|object, null given in /home/public_html/web/administrator/components/com_joomdle/src/Helper/ShopHelper.php on line 115
For courses where the user is enrolled, the "Go to Course" button is displayed.
Is there a way to automatically enroll the user?
Regards
I'm using Joomdle 3.x. When I view the Course Listing, it shows the following error if the user is not enrolled in the course:
Warning: foreach() argument must be of type array|object, null given in /home/public_html/web/administrator/components/com_joomdle/src/Helper/ShopHelper.php on line 115
For courses where the user is enrolled, the "Go to Course" button is displayed.
Is there a way to automatically enroll the user?
Regards
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7864
2 months 2 weeks ago #2
by Antonio Durán
Replied by Antonio Durán on topic Automatically enroll
Thanks for the info, I will fix it for next package.
You can fix it by change the line to:
$items = $event->getArgument('results') ?? [];
> Is there a way to automatically enroll the user?
You can enable self enrol in Moodle course, and that will make a button show in Joomla so the user can self enrol.
You can fix it by change the line to:
$items = $event->getArgument('results') ?? [];
> Is there a way to automatically enroll the user?
You can enable self enrol in Moodle course, and that will make a button show in Joomla so the user can self enrol.
Please Log in or Create an account to join the conversation.
- Dalton
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
2 months 2 weeks ago #3
by Dalton
Replied by Dalton on topic Automatically enroll
It worked!!!
thanks
thanks
Please Log in or Create an account to join the conversation.