michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
32 stars 43 forks source link

Bug: Notice: Undefined property: stdClass::$branch during Moodle installation #236

Closed michael-milette closed 1 year ago

michael-milette commented 1 year ago

Prerequisites

What happened?

I get the following in Moodle if FilterCodes files are copied into place before initial and debugging is enabled:

Notice: Undefined property: stdClass::$branch in /filter/filtercodes/settings/general.php on line 29

What do you think should have happened?

The case where the $CFG->branch variable has yet to be defined should have been handled better.

Steps to reproduce

  1. Complete the normal installation steps to creating a Moodle site.
  2. During the installation, you will see the following error:

Notice: Undefined property: stdClass::$branch in /filter/filtercodes/settings/general.php on line 29

Screenshots

No response

Moodle version

3.11.7

Installed Moodle UI Language packs.

Code of Conduct