Skip to content

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

Description

@mplt-aleks

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions