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:42 +01:00
parent 1b1a15a308
commit 246e5ff95c
+2 -1
View File
@@ -121,6 +121,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,
'checksum_algorithm' => self::DEFAULT_CHECKSUM_ALGORITHM,
@@ -155,7 +156,7 @@ class config {
if (isset($CFG->{'bigbluebuttonbn_' . $setting})) {
return (string) $CFG->{'bigbluebuttonbn_' . $setting};
}
return self::defaultvalue($setting);
return (string) self::defaultvalue($setting);
}
/**