Skip to content

Commit

Permalink
crud response no can handle arrays of items
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsbalodis committed May 7, 2012
1 parent d87ba46 commit 3536eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/controller/crud.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected function crud_get_id(&$values) {
protected function crud_response($model) {

// model is an iterator of objects
if($model instanceof Database_Result) {
if($model instanceof Database_Result || is_array($model)) {

$object = array();

Expand Down

0 comments on commit 3536eb5

Please sign in to comment.