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:
tjhunt
2008-07-25 14:18:02 +00:00
parent 92718f4c44
commit 4089d9ec52
+3
View File
@@ -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;
}