diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-02-07 15:08:55 -0500 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-07 15:08:55 -0500 |
commit | 27ec3b4c6c9e5bd9fa61fd613b9b68af37eab1e4 (patch) | |
tree | 24307375edfca24d3e7ec3070fa44671440cda55 /modules | |
parent | 1796a290c18a2e38c7714ac903c78ac54c373e6b (diff) |
Follow-on to 1e4d75c12072b49c3469f18af13bcf3439afc6b0 for #1975.
Don't try to use an array index on a function return, that's not supported
in PHP 5.3
Diffstat (limited to 'modules')
-rw-r--r-- | modules/search/controllers/search.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/search/controllers/search.php b/modules/search/controllers/search.php index 673a281f..b54d7699 100644 --- a/modules/search/controllers/search.php +++ b/modules/search/controllers/search.php @@ -111,6 +111,7 @@ class Search_Controller extends Controller { } static function get_siblings($q, $album) { - return search::search_within_album(search::add_query_terms($q), $album, 1000, 1)[1]; + $result = search::search_within_album(search::add_query_terms($q), $album, 1000, 1); + return $result[1]; } } |