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

Debug info:
Error code: codingerror
Stack trace:
  • line 770 of /lib/dml/moodle_database.php: coding_exception thrown
  • line 1342 of /course/classes/category.php: call to moodle_database->get_in_or_equal()
  • line 1345 of /course/renderer.php: call to core_course_category->get_children()
  • line 1432 of /course/renderer.php: call to core_course_renderer->coursecat_subcategories()
  • line 1547 of /course/renderer.php: call to core_course_renderer->coursecat_category_content()
  • line 1680 of /course/renderer.php: call to core_course_renderer->coursecat_tree()
  • line 66 of /course/index.php: call to core_course_renderer->course_category()