diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2011-06-28 14:30:52 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2011-06-28 14:30:52 -0400 |
commit | 1e05bfe554bb26c439fa19aa61ed692c858d773f (patch) | |
tree | 40e5b2cfa3e74ce034c4e1063bcc5fbc1190d85b /lib/class/api.class.php | |
parent | 6fd6cc1fcc62f0d4e4af767b4119b388d9a3221b (diff) | |
download | ampache-1e05bfe554bb26c439fa19aa61ed692c858d773f.tar.gz ampache-1e05bfe554bb26c439fa19aa61ed692c858d773f.tar.bz2 ampache-1e05bfe554bb26c439fa19aa61ed692c858d773f.zip |
Fix broken API method
Api::search_songs needed to declare a type, and Search::run needed to
honour that declaration.
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r-- | lib/class/api.class.php | 1 |
1 files changed, 1 insertions, 0 deletions
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; |