Commit 10c71d8a authored by Marina Glancy's avatar Marina Glancy Committed by Damyon Wiese

MDL-31436 registration: do not send false in update request

parent 23611c37
......@@ -158,8 +158,8 @@ class registration {
$cleanhuburl = clean_param(HUB_MOODLEORGHUBURL, PARAM_ALPHANUMEXT);
foreach (self::FORM_FIELDS as $field) {
$siteinfo[$field] = get_config('hub', 'site_'.$field.'_' . $cleanhuburl);
if ($siteinfo[$field] === false && array_key_exists($field, $defaults)) {
$siteinfo[$field] = $defaults[$field];
if ($siteinfo[$field] === false) {
$siteinfo[$field] = array_key_exists($field, $defaults) ? $defaults[$field] : null;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment