Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Fixed custom finder
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 19, 2012
1 parent b9efc6d commit 51338c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Favorite.php
Expand Up @@ -191,7 +191,7 @@ function paginateCount($conditions = array(), $recursive = 0, $extra = array())
if ($recursive != $this->recursive) {
$parameters['recursive'] = $recursive;
}
if (isset($extra['type']) && isset($this->_findMethods[$extra['type']])) {
if (isset($extra['type']) && isset($this->findMethods[$extra['type']])) {
$extra['operation'] = 'count';
return $this->find($extra['type'], array_merge($parameters, $extra));
} else {
Expand Down

0 comments on commit 51338c1

Please sign in to comment.