Browse files

Changed handling for non document results

  • Loading branch information...
1 parent 343f787 commit 9d72847f136d088b4426878ee1bf1f4a8174b0c4 @kalkin committed Feb 15, 2010
Showing with 2 additions and 7 deletions.
  1. +2 −7 JForg/Couchdb/Document/Design.php
View
9 JForg/Couchdb/Document/Design.php
@@ -114,13 +114,8 @@ protected function _callView($viewName, array $params = null)
return $collection;
} else {
- // The document contains only some bunch of data so we generate an JForg_Dodb_Array
- $tmp = array();
- foreach( $data['rows'] as $row )
- {
- $tmp[] = $row;
- }
- return Solar::factory('JForg_Dodb_Array')->populate($tmp);
+ // The document contains only some bunch of data so we just return it as an array
+ return Solar::factory('JForg_Dodb_Array')->populate($data['rows']);
}
}

0 comments on commit 9d72847

Please sign in to comment.