Skip to content

Commit

Permalink
Merge branch 'MDL-65104-36' of git://git.cameron1729.xyz/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_36_STABLE
  • Loading branch information
abgreeve committed May 6, 2019
2 parents a402077 + 3282dda commit 84d3af5
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 @@ -80,7 +80,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 @@ -566,4 +566,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 84d3af5

Please sign in to comment.