]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 fixed count_records() API
authorskodak <skodak>
Sun, 1 Jun 2008 14:08:44 +0000 (14:08 +0000)
committerskodak <skodak>
Sun, 1 Jun 2008 14:08:44 +0000 (14:08 +0000)
lib/dml/moodle_database.php

index 7389a97758c145fd64a6c0d8c7d82a63fca51fe4..cb21e8eb859e85e00585de65e2a20a260c7e6573 100644 (file)
@@ -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);
     }