MDL-15537 - followup - don't display an error if you ask questionlib.php to load an empty list of questions.
This commit is contained in:
@@ -776,6 +776,9 @@ function questionbank_navigation_tabs(&$row, $contexts, $querystring) {
|
||||
*/
|
||||
function question_preload_questions($questionids, $extrafields = '', $join = '', $extraparams = array()) {
|
||||
global $CFG, $DB;
|
||||
if (empty($questionids)) {
|
||||
return array();
|
||||
}
|
||||
if ($join) {
|
||||
$join = ' JOIN '.$join;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user