Merge branch 'MDL-65104-master' of git://git.cameron1729.xyz/moodle

This commit is contained in:
Adrian Greeve
2019-05-07 16:24:36 +08:00
+2 -2
View File
@@ -82,7 +82,7 @@ class registration {
global $DB;
if (self::$registration === null) {
self::$registration = $DB->get_record('registration_hubs', ['huburl' => HUB_MOODLEORGHUBURL]);
self::$registration = $DB->get_record('registration_hubs', ['huburl' => HUB_MOODLEORGHUBURL]) ?: null;
}
if (self::$registration && (bool)self::$registration->confirmed == (bool)$confirmed) {
@@ -578,4 +578,4 @@ class registration {
redirect(new moodle_url('/admin/registration/index.php', ['returnurl' => $returnurl->out_as_local_url(false)]));
}
}
}
}