]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 fixed incorrect fields param
authorskodak <skodak>
Wed, 4 Jun 2008 23:53:44 +0000 (23:53 +0000)
committerskodak <skodak>
Wed, 4 Jun 2008 23:53:44 +0000 (23:53 +0000)
lib/dml/moodle_database.php

index 18004c53ab954436ea5da4158bcdaf68c3fbec07..901d7819dfba79e9288e4092fded3949cd167bae 100644 (file)
@@ -521,7 +521,7 @@ abstract class moodle_database {
         if ($sort) {
             $sort = " ORDER BY $sort";
         }
-        return $this->get_recordset_sql("SELECT * FROM {$this->prefix}$table $select $sort", $params, $limitfrom, $limitnum);
+        return $this->get_recordset_sql("SELECT $fields FROM {$this->prefix}$table $select $sort", $params, $limitfrom, $limitnum);
     }
 
     /**