catalyst / moodle-mod_subcourse

Subcourse module for Moodle
https://moodle.org/plugins/mod_subcourse
GNU General Public License v3.0
24 stars 41 forks source link

return $type; not found #84

Open eduardokraus opened 5 months ago

eduardokraus commented 5 months ago

Problem Description

In lines 46 and 51 of the custom_completion class, return $type; is present, however, the variables $type are not defined.

Problem Location

Line 46: Link Line 51: Link

Steps to Reproduce

Access the custom_completion.php file in the mentioned repository. Navigate to lines 46 and 51. Note that the variables $type are not defined before the return statement.

eduardokraus commented 4 months ago

https://github.com/EduardoKrausME/moodle-mod_subcourse/blob/MOODLE_402_STABLE/classes/completion/custom_completion.php#L47