]> git.mjollnir.org Git - moodle.git/commitdiff
merged from 18_STABLE MDL-8552
authorpichetp <pichetp>
Fri, 2 Mar 2007 14:09:07 +0000 (14:09 +0000)
committerpichetp <pichetp>
Fri, 2 Mar 2007 14:09:07 +0000 (14:09 +0000)
question/type/datasetdependent/abstractqtype.php

index d957df8c76424f38fb4e42e857a2b499f47a9814..4f4a0fbca92e0eb61acd51df13f5d22083c508ac 100644 (file)
@@ -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