Skip to content

Commit

Permalink
Merge branch 'MDL-65104-master' of git://git.cameron1729.xyz/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed May 7, 2019
2 parents 7b43eea + f321b05 commit 3135f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/classes/hub/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected static function get_registration($confirmed = true) {
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) {
Expand Down Expand Up @@ -578,4 +578,4 @@ public static function registration_reminder($url) {
redirect(new moodle_url('/admin/registration/index.php', ['returnurl' => $returnurl->out_as_local_url(false)]));
}
}
}
}

0 comments on commit 3135f0f

Please sign in to comment.