From 4906c7de463eb342f8d051a12d6e26fbe6042295 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 1 Jun 2008 14:08:44 +0000 Subject: [PATCH] MDL-14679 fixed count_records() API --- 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 7389a97758..cb21e8eb85 100644 --- a/lib/dml/moodle_database.php +++ b/lib/dml/moodle_database.php @@ -940,7 +940,7 @@ abstract class moodle_database { * @param array $conditions optional array $fieldname=>requestedvalue with AND in between * @return int The count of records returned from the specified criteria. */ - public function count_records($table, array $conditions=null, array $params=null) { + public function count_records($table, array $conditions=null) { list($select, $params) = $this->where_clause($conditions); return $this->count_records_select($table, $select, $params); } -- 2.39.5