From a5c44068213aa44a43a15947feb3e905623a8db3 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Mon, 20 Jun 2011 18:58:34 -0400 Subject: Fix to make sure search goes to page 1 if no page is defined --- controllers/SearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controllers/SearchController.php') 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])) -- cgit v1.2.3