Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Function get_in_or_equal does not accept empty arrays in local_o365 mode_maintenance_resyncgroupusers function #2700

Open
patmr7 opened this issue Nov 26, 2024 · 0 comments · May be fixed by #2701, #2702, #2703 or #2704
Assignees
Labels
Feature - user sync Issue type - bug Bugs in existing code that needs to be fixed. Plugin - local_o365 Status - PR ready / pending release Dev is done and PR ready. Will be included in the next release.
Milestone

Comments

@patmr7
Copy link
Collaborator

patmr7 commented Nov 26, 2024

In the case where synchronization is disabled for all courses, the get_in_or_equal function returns an error related to an empty array.

Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays

[More information about this error](https://docs.moodle.org/405/en/error/debug/codingerror)

Debug info:
Error code: codingerror×Dismiss this notification
Stack trace:
line 782 of /lib/dml/moodle_database.php: core\exception\coding_exception thrown
line 1435 of /local/o365/classes/page/acp.php: call to moodle_database->get_in_or_equal()
line 146 of /local/o365/classes/page/base.php: call to local_o365\page\acp->mode_maintenance_resyncgroupusers()
line 35 of /local/o365/acp.php: call to local_o365\page\base->run()
# for free to join this conversation on GitHub. Already have an account? # to comment