Skip to content

Commit

Permalink
MDL-14679 fixed count_records() API
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 1, 2008
1 parent 45df7de commit 4906c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dml/moodle_database.php
Expand Up @@ -940,7 +940,7 @@ public abstract function set_field_select($table, $newfield, $newvalue, $select,
* @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);
}
Expand Down

0 comments on commit 4906c7d

Please sign in to comment.