diff --git a/element/date/classes/element.php b/element/date/classes/element.php index c148059..701e313 100644 --- a/element/date/classes/element.php +++ b/element/date/classes/element.php @@ -147,7 +147,7 @@ class element extends \mod_customcert\element { $customcert = $DB->get_record('customcert', array('templateid' => $page->templateid), '*', MUST_EXIST); // Now we can get the issue for this user. $issue = $DB->get_record('customcert_issues', array('userid' => $user->id, 'customcertid' => $customcert->id), - '*', MUST_EXIST); + '*', IGNORE_MULTIPLE); if ($dateitem == CUSTOMCERT_DATE_ISSUE) { $date = $issue->timecreated;