studentquiz / moodle-mod_studentquiz

Moodle-Plugin
GNU General Public License v3.0
38 stars 37 forks source link

studentquiz_get_coursemodule_info(): Return value must be of type cached_cm_info, bool returned #488

Open roessling opened 3 months ago

roessling commented 3 months ago

Hi, the following problem has come up in my Moodle installation: _studentquiz_get_coursemodule_info(): Return value must be of type cached_cminfo, bool returned The reason is that method "studentquiz_get_coursemodule_info()" in file lib.php returns "false", which is obviously not an instance of cached_cm_info. My immediate solution was to change "return false;" to "return new cached_cm_info();", although I am not sure this really helps a lot (except make the error message go away). Best regards,

Guido