diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/Anime.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/Anime.php b/models/Anime.php index 8281ea7..71a7fd9 100644 --- a/models/Anime.php +++ b/models/Anime.php @@ -12,7 +12,7 @@ class Anime extends \lithium\data\Model { switch($by) { case 'special_id': - $content = self::find('first', + $anime = self::find('first', array('conditions' => array( $by => $query ), @@ -28,7 +28,7 @@ class Anime extends \lithium\data\Model { if ($query) { $conditions = null; // TODO - $content = self::find('all', array( + $anime = self::find('all', array( 'conditions' => array($by => array('like' => $query)), 'limit' => $limit, 'page' => $page @@ -37,13 +37,13 @@ class Anime extends \lithium\data\Model { } else { - $content = self::find('all', array( + $anime = self::find('all', array( 'limit' => $limit, 'page' => $page )); $total = Anime::count(); } } - return compact('content', 'by', 'limit', 'total', 'page'); + return compact('anime', 'by', 'limit', 'total', 'page'); } } |