Browse Source

Merge pull request #2960 from bar/patch-2

count() and serialize() should be uniform.
Mark Story 12 years ago
parent
commit
5692fb52d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Datasource/ResultSetDecorator.php

+ 1 - 1
src/Datasource/ResultSetDecorator.php

@@ -40,7 +40,7 @@ class ResultSetDecorator extends Collection implements Countable, Serializable,
  * @return integer
  */
 	public function count() {
-		return count(iterator_to_array($this));
+		return count($this->toArray());
 	}
 
 /**