MDL-77868 mod_bigbluebuttonbn: default config for welcome editable.

The property was added to the config options in c3f4123b, however no
default value was provided, meaning if it was ever unset then a PHP
type error would be triggered on the null return.
This commit is contained in:
Paul Holden
2023-06-18 19:19:53 +01:00
parent 64b701190d
commit 38e53fdcb6
+2 -1
View File
@@ -110,6 +110,7 @@ class config {
'hideuserlist_default' => false,
'hideuserlist_editable' => true,
'welcome_default' => '',
'welcome_editable' => true,
'default_dpa_accepted' => false,
'poll_interval' => bigbluebutton_proxy::DEFAULT_POLL_INTERVAL,
];
@@ -143,7 +144,7 @@ class config {
if (isset($CFG->{'bigbluebuttonbn_' . $setting})) {
return (string) $CFG->{'bigbluebuttonbn_' . $setting};
}
return self::defaultvalue($setting);
return (string) self::defaultvalue($setting);
}
/**