summaryrefslogtreecommitdiff
path: root/modules/search/controllers
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2013-03-19 16:41:42 +0000
committerNathan Kinkade <nath@nkinka.de>2013-03-19 16:41:42 +0000
commit3908e37d965fa76ea774e76ddf42365a872a5f27 (patch)
tree457e1a1e465f83855eee96ba287cd91f1623395c /modules/search/controllers
parent711651f727e093cc7357a6bbff6bd992fd6dfd80 (diff)
parent1eab94f6062b5f54ea5d9db01d968e7195f3de9d (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/search/controllers')
-rw-r--r--modules/search/controllers/search.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/search/controllers/search.php b/modules/search/controllers/search.php
index 25ccd81c..753d9b69 100644
--- a/modules/search/controllers/search.php
+++ b/modules/search/controllers/search.php
@@ -110,7 +110,13 @@ class Search_Controller extends Controller {
Breadcrumb::instance($item->title, $item->url())->set_last()));
}
- static function get_siblings($q, $album, $limit=1000, $offset=1) {
+ static function get_siblings($q, $album, $limit, $offset) {
+ if (!isset($limit)) {
+ $limit = 100;
+ }
+ if (!isset($offset)) {
+ $offset = 1;
+ }
$result = search::search_within_album(search::add_query_terms($q), $album, $limit, $offset);
return $result[1];
}