summaryrefslogtreecommitdiffstats
path: root/apps/media/lib_ampache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-17 00:07:08 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-17 00:07:17 +0200
commit9f28c20660e113c501a951262765ce9c9c4d0e84 (patch)
tree3646e8388be9a44ba6edf4d2bb522ce5d45c60ec /apps/media/lib_ampache.php
parentea65d90a41db5d9d549dca623e478329195428c8 (diff)
downloadnextcloud-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.php4
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>');