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-07 00:10:09 +01:00
parent 1b1a15a308
commit 246e5ff95c
No known key found for this signature in database
GPG key ID: A81A96D6045F6164

View file

@ -121,6 +121,7 @@ class config {
'hideuserlist_default' => false, 'hideuserlist_default' => false,
'hideuserlist_editable' => true, 'hideuserlist_editable' => true,
'welcome_default' => '', 'welcome_default' => '',
'welcome_editable' => true,
'default_dpa_accepted' => false, 'default_dpa_accepted' => false,
'poll_interval' => bigbluebutton_proxy::DEFAULT_POLL_INTERVAL, 'poll_interval' => bigbluebutton_proxy::DEFAULT_POLL_INTERVAL,
'checksum_algorithm' => self::DEFAULT_CHECKSUM_ALGORITHM, 'checksum_algorithm' => self::DEFAULT_CHECKSUM_ALGORITHM,
@ -155,7 +156,7 @@ class config {
if (isset($CFG->{'bigbluebuttonbn_' . $setting})) { if (isset($CFG->{'bigbluebuttonbn_' . $setting})) {
return (string) $CFG->{'bigbluebuttonbn_' . $setting}; return (string) $CFG->{'bigbluebuttonbn_' . $setting};
} }
return self::defaultvalue($setting); return (string) self::defaultvalue($setting);
} }
/** /**