From 1e05bfe554bb26c439fa19aa61ed692c858d773f Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Tue, 28 Jun 2011 14:30:52 -0400 Subject: Fix broken API method Api::search_songs needed to declare a type, and Search::run needed to honour that declaration. --- lib/class/api.class.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/class/api.class.php') diff --git a/lib/class/api.class.php b/lib/class/api.class.php index 631308eb..91433437 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -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; -- cgit