mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
Merge branch 'MDL-65104-master' of git://git.cameron1729.xyz/moodle
This commit is contained in:
commit
3135f0f2e5
@ -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)]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user