diff options
author | Michael Francis <edude03@gmail.com> | 2011-06-20 18:58:34 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-06-20 18:58:34 -0400 |
commit | a5c44068213aa44a43a15947feb3e905623a8db3 (patch) | |
tree | fa57550f5740b65dba6961325c4f488685581069 /controllers | |
parent | e5cef083b9c36c532475102d0ce1de63308b914e (diff) | |
download | otakuhub-a5c44068213aa44a43a15947feb3e905623a8db3.tar.xz |
Fix to make sure search goes to page 1 if no page is defined
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/SearchController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/SearchController.php b/controllers/SearchController.php index 496dec5..d8c8298 100644 --- a/controllers/SearchController.php +++ b/controllers/SearchController.php @@ -22,7 +22,7 @@ class SearchController extends \lithium\action\Controller { { $searchParam = '/' . $this->request->query['search'] . '/i'; - $page = $this->request->query['page'] ?: 1; + $page = isset($this->request->query['page']) ? $this->request->query['page'] : 1; //If the type part of the URL is a valid type (as defined above), if (isset($this->_types[$type])) |