mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-78543 admin: fix stored file setting default application
This commit is contained in:
parent
92446838ab
commit
24c416592c
@ -10581,7 +10581,7 @@ class admin_setting_configstoredfile extends admin_setting {
|
||||
|
||||
// Let's not deal with validation here, this is for admins only.
|
||||
$current = $this->get_setting();
|
||||
if (empty($data) && $current === null) {
|
||||
if (empty($data) && ($current === null || $current === '')) {
|
||||
// This will be the case when applying default settings (installation).
|
||||
return ($this->config_write($this->name, '') ? '' : get_string('errorsetting', 'admin'));
|
||||
} else if (!is_number($data)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user