Removed unnecessary line of code
This commit is contained in:
parent
010aa564e1
commit
33a711b240
1 changed files with 11 additions and 14 deletions
5
lib.php
5
lib.php
|
@ -715,7 +715,7 @@ function customcert_get_issues($customcertid, $groupmode, $cm, $page, $perpage)
|
||||||
// Get all the users that have customcerts issued, should only be one issue per user for a customcert
|
// Get all the users that have customcerts issued, should only be one issue per user for a customcert
|
||||||
$allparams = $conditionsparams + array('customcertid' => $customcertid);
|
$allparams = $conditionsparams + array('customcertid' => $customcertid);
|
||||||
|
|
||||||
$users = $DB->get_records_sql("SELECT u.*, ci.code, ci.timecreated
|
return $DB->get_records_sql("SELECT u.*, ci.code, ci.timecreated
|
||||||
FROM {user} u
|
FROM {user} u
|
||||||
INNER JOIN {customcert_issues} ci
|
INNER JOIN {customcert_issues} ci
|
||||||
ON u.id = ci.userid
|
ON u.id = ci.userid
|
||||||
|
@ -726,9 +726,6 @@ function customcert_get_issues($customcertid, $groupmode, $cm, $page, $perpage)
|
||||||
$allparams,
|
$allparams,
|
||||||
$page * $perpage,
|
$page * $perpage,
|
||||||
$perpage);
|
$perpage);
|
||||||
|
|
||||||
|
|
||||||
return $users;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue