diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-17 00:07:08 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-17 00:07:17 +0200 |
commit | 9f28c20660e113c501a951262765ce9c9c4d0e84 (patch) | |
tree | 3646e8388be9a44ba6edf4d2bb522ce5d45c60ec /apps/media/lib_ampache.php | |
parent | ea65d90a41db5d9d549dca623e478329195428c8 (diff) | |
download | nextcloud-server-9f28c20660e113c501a951262765ce9c9c4d0e84.tar.gz nextcloud-server-9f28c20660e113c501a951262765ce9c9c4d0e84.zip |
fix collection browsing using the ampache api
Diffstat (limited to 'apps/media/lib_ampache.php')
-rw-r--r-- | apps/media/lib_ampache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/media/lib_ampache.php b/apps/media/lib_ampache.php index 97dc004e218..a0123f87c51 100644 --- a/apps/media/lib_ampache.php +++ b/apps/media/lib_ampache.php @@ -201,6 +201,7 @@ class OC_MEDIA_AMPACHE{ $filter=isset($params['filter'])?$params['filter']:''; $exact=isset($params['exact'])?($params['exact']=='true'):false; $artists=OC_MEDIA_COLLECTION::getArtists($filter,$exact); + error_log('artists found: '.print_r($artists,true)); echo('<root>'); foreach($artists as $artist){ self::printArtist($artist); @@ -215,8 +216,7 @@ class OC_MEDIA_AMPACHE{ </root>"); return; } - global $SITEROOT; - $filter=$params['filter']; + $filter=isset($params['filter'])?$params['filter']:''; $songs=OC_MEDIA_COLLECTION::getSongs($filter); $artist=OC_MEDIA_COLLECTION::getArtistName($filter); echo('<root>'); |