Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.1
-
Fix Version/s: None
-
Component/s: Block: Mrbs
-
Labels:None
-
Environment:Any
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
The following notices are displayed when you visit the MRBS calendar pages when the user is not logged in.
Notice: Undefined property: object::$lang in /Users/sbourget/Sites/moodle19/blocks/mrbs/web/config.inc.php on line 298
Notice: Undefined property: object::$lang in /Users/sbourget/Sites/moodle19/blocks/mrbs/web/config.inc.php on line 336
Notice: Undefined property: object::$lang in /Users/sbourget/Sites/moodle19/blocks/mrbs/web/config.inc.php on line 349
Attached is a patch to prevent the notices.
Thanks Steve for the report and patch. I have applied it along with an else statement to use 'en' as the default. Peace - Anthony