From 0208b97cb6d532ddd506fbe074edeb76117e01ee Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 4 Jun 2008 23:53:44 +0000 Subject: [PATCH] MDL-14679 fixed incorrect fields param --- lib/dml/moodle_database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dml/moodle_database.php b/lib/dml/moodle_database.php index 18004c53ab..901d7819df 100644 --- a/lib/dml/moodle_database.php +++ b/lib/dml/moodle_database.php @@ -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); } /** -- 2.39.5