1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

Fix broken API method

Api::search_songs needed to declare a type, and Search::run needed to
honour that declaration.
This commit is contained in:
Paul Arthur 2011-06-28 14:30:52 -04:00
parent 6fd6cc1fcc
commit 1e05bfe554
3 changed files with 16 additions and 1 deletions

View file

@ -581,6 +581,7 @@ class Api {
* This searches the songs and returns... songs
*/
public static function search_songs($input) {
$array['type'] = 'song';
$array['rule_1'] = 'anywhere';
$array['rule_1_input'] = $input['filter'];
$array['rule_1_operator'] = 0;