Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.3, 2.4, 2.4.1
-
Component/s: Filters
-
Environment:Independent of environment
-
Database:Any
-
Testing Instructions:
-
Workaround:
-
Difficulty:Easy
-
Affected Branches:MOODLE_20_STABLE, MOODLE_24_STABLE
-
Fixed Branches:MOODLE_29_STABLE, MOODLE_30_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-27840-master -
Pull Master Diff URL:
Description
With debug switched on courses that have missing activity titles produce errors although the page still loads.
The usort called is not set up to handle blank / missing names, producing repeated errors (e.g.):
Notice: Undefined property: stdClass::$name in .../moodle2/filter/activitynames/filter.php on line 107
Notice: Undefined property: stdClass::$name in .../moodle2/filter/activitynames/filter.php on line 110