Skip to content

Commit

Permalink
Merge pull request #1382 from sjinks/issue-1377
Browse files Browse the repository at this point in the history
[1.3.0] Fix #1377
  • Loading branch information
Phalcon committed Oct 15, 2013
2 parents cb714c4 + de67cbd commit 8a466a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/mvc/model/resultset/simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray){
phalcon_fast_count(row_count, records TSRMLS_CC);
phalcon_update_property_this(this_ptr, SL("_count"), row_count TSRMLS_CC);
}
else {
PHALCON_INIT_NVAR(records);
array_init(records);
}
}
}

Expand Down

0 comments on commit 8a466a6

Please sign in to comment.