mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
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:
parent
1b1a15a308
commit
246e5ff95c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue