Follow-on to 1e4d75c120 for #1975.

Don't try to use an array index on a function return, that's not supported
in PHP 5.3
This commit is contained in:
Bharat Mediratta
2013-02-07 15:08:55 -05:00
parent 1796a290c1
commit 27ec3b4c6c

View File

@@ -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];
}
}