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

Undefined variable $modname at classes\condition.php #35

Open
mplt-aleks opened this issue Aug 23, 2023 · 0 comments
Open

Undefined variable $modname at classes\condition.php #35

mplt-aleks opened this issue Aug 23, 2023 · 0 comments

Comments

@mplt-aleks
Copy link

So we've caught this error in our logs:

PHP Warning: Undefined variable $modname in PATH_TO_MOODLE\availability\condition\othercompleted\classes\condition.php on line 147

Upon checking, the $modname variable was being set conditionally(see lines 122-126) and with no default, so when it didn't met the condition the line 147 will complain.

Thank you so much. Cheers!

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

No branches or pull requests

1 participant