From 0cb014979dd5a4495f0b6c898fa92412f0c9bd58 Mon Sep 17 00:00:00 2001 From: pichetp Date: Fri, 2 Mar 2007 14:09:07 +0000 Subject: [PATCH] merged from 18_STABLE MDL-8552 --- question/type/datasetdependent/abstractqtype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/datasetdependent/abstractqtype.php b/question/type/datasetdependent/abstractqtype.php index d957df8c76..4f4a0fbca9 100644 --- a/question/type/datasetdependent/abstractqtype.php +++ b/question/type/datasetdependent/abstractqtype.php @@ -27,7 +27,7 @@ class question_dataset_dependent_questiontype extends default_questiontype { // Find out how many datasets are available global $CFG; if(!$maxnumber = (int)get_field_sql( - "SELECT MAX(a.itemcount) + "SELECT MIN(a.itemcount) FROM {$CFG->prefix}question_dataset_definitions a, {$CFG->prefix}question_datasets b WHERE b.question = $question->id -- 2.39.5