-
Bug
-
Resolution: Fixed
-
Minor
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-42429_master -
- Add a lesson to a course.
- Click to edit this lesson after it has been created.
- Ensure there is no PHP notice.
-
5
-
BACKEND Sprint 6
- Add a lesson to a course.
- Click to edit this lesson.
- You will get a PHP notice "Notice: Undefined property: stdClass::$version in /var/www/mstorage/sm/moodle/mod/lesson/mod_form.php on line 321" displaying.
It seems the global $module variable no longer stores the version.
This check seems really unnecessary as we know the module version is not going to be less than what is stated. I am just removing it.