lesson MDL-23525 changed attempts retrieval from db to intuitional (code assumes...
authorAparup Banerjee <nebgor@gmail.com>
Wed, 4 Aug 2010 02:26:46 +0000 (02:26 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Wed, 4 Aug 2010 02:26:46 +0000 (02:26 +0000)
mod/lesson/locallib.php

index b7d0b79..556d6aa 100644 (file)
@@ -1013,7 +1013,7 @@ class lesson extends lesson_base {
         if ($userid === null) {
             $params['userid'] = $USER->id;
         }
-        return $DB->get_records('lesson_attempts', $params, 'timeseen DESC');
+        return $DB->get_records('lesson_attempts', $params, 'timeseen ASC');
     }
 
     /**