Skip to content

Commit

Permalink
Fixed the issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthlmsace committed Nov 24, 2023
1 parent ada42be commit 5f9d0b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: 'pgsql'
- php: '8.0'
moodle-branch: 'MOODLE_403_STABLE'
database: 'mariadb'
- php: '8.0'
moodle-branch: 'MOODLE_403_STABLE'
database: 'pgsql'
# - php: '8.0'
# moodle-branch: 'MOODLE_403_STABLE'
# database: 'mariadb'
# - php: '8.0'
# moodle-branch: 'MOODLE_403_STABLE'
# database: 'pgsql'
# - php: '8.0'
# moodle-branch: 'MOODLE_400_STABLE'
# database: 'pgsql'
Expand Down
2 changes: 1 addition & 1 deletion classes/observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function format_kickstart_changeconfig($event) {
$data = $event->get_data();
$plugin = $data['other']['plugin'];
$name = isset($data['other']['name']) ? $data['other']['name'] : '';
if (preg_match("/^format_/", $plugin) && $name == 'disabled') {
if (preg_match("/^format_/", $plugin ?? '') && $name == 'disabled') {
$templates = isset($CFG->kickstart_templates) ? explode(",", $CFG->kickstart_templates) : [];
$disable = ($data['other']['value'] == 1) ? true : false;
$format = substr($plugin, 7);
Expand Down

0 comments on commit 5f9d0b4

Please sign in to comment.