summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--controllers/SearchController.php2
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]))