Ignore multiple certificate codes (#363)
This commit is contained in:
parent
8125a5e9ff
commit
3bd09923c4
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,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);
|
||||
$code = $issue->code;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue