summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-27 18:10:40 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-27 18:10:40 -0400
commitdd4765ad1654f1fb52585a093ab3438b0810c88b (patch)
treee12b633170f8953793237928c01eaa5e12b6cfda /apps/media
parent6a4c46e2c29eac2c6c0344c46ab18375608b5c5f (diff)
downloadnextcloud-server-dd4765ad1654f1fb52585a093ab3438b0810c88b.tar.gz
nextcloud-server-dd4765ad1654f1fb52585a093ab3438b0810c88b.zip
Set filter to empty if not set by Ampache client
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/lib_ampache.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/media/lib_ampache.php b/apps/media/lib_ampache.php
index a041e9a884c..4951399fa18 100644
--- a/apps/media/lib_ampache.php
+++ b/apps/media/lib_ampache.php
@@ -71,7 +71,6 @@ class OC_MEDIA_AMPACHE{
$pass=$users[0]['user_password_sha256'];
$key=hash('sha256',$time.$pass);
if($key==$auth){
-
$token=hash('sha256','oc_media_'.$key);
OC_MEDIA_COLLECTION::$uid=$users[0]['user_id'];
$date=date('c');//todo proper update/add/clean dates
@@ -273,7 +272,7 @@ class OC_MEDIA_AMPACHE{
</root>");
return;
}
- $filter=$params['filter'];
+ $filter = isset($params['filter']) ? $params['filter'] : '';
$albums=OC_MEDIA_COLLECTION::getAlbums($filter);
$artist=OC_MEDIA_COLLECTION::getArtistName($filter);
echo('<?xml version="1.0" encoding="UTF-8"?>');
@@ -402,7 +401,7 @@ class OC_MEDIA_AMPACHE{
</root>");
return;
}
- $filter=$params['filter'];
+ $filter = isset($params['filter']) ? $params['filter'] : '';
$artists=OC_MEDIA_COLLECTION::getArtists($filter);
$albums=OC_MEDIA_COLLECTION::getAlbums(0,$filter);
$songs=OC_MEDIA_COLLECTION::getSongs(0,0,$filter);