Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
roessling opened this issue Apr 23, 2024 · 0 comments

Comments

@roessling
Copy link

Hi,
the following problem has come up in my Moodle installation:
studentquiz_get_coursemodule_info(): Return value must be of type cached_cm_info, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant