summaryrefslogtreecommitdiffstats
path: root/lib/class/api.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2011-06-28 14:30:52 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2011-06-28 14:30:52 -0400
commit1e05bfe554bb26c439fa19aa61ed692c858d773f (patch)
tree40e5b2cfa3e74ce034c4e1063bcc5fbc1190d85b /lib/class/api.class.php
parent6fd6cc1fcc62f0d4e4af767b4119b388d9a3221b (diff)
downloadampache-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.php1
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;