summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-28 23:20:02 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-28 23:20:08 +0200
commit281b2187abac07826c3231816d9d4746ae2c0e91 (patch)
treeb81641f9bbe9a7ec07c749412c8e171c5512a24b /apps/media
parentbe4cb5536846049ffdc1093adf6649cbe13903fa (diff)
downloadnextcloud-server-281b2187abac07826c3231816d9d4746ae2c0e91.tar.gz
nextcloud-server-281b2187abac07826c3231816d9d4746ae2c0e91.zip
fix detection of empty collection
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/js/collection.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/js/collection.js b/apps/media/js/collection.js
index 4b772b1756f..405fbbcf4a5 100644
--- a/apps/media/js/collection.js
+++ b/apps/media/js/collection.js
@@ -55,7 +55,7 @@ Collection={
for(var i=0;i<Collection.loadedListeners.length;i++){
Collection.loadedListeners[i]();
}
- if(data.songs[i].length==0){
+ if(data.songs.length==0){
$('#scan input.start').val(t('media','Scan Collection'));
$('#scan input.start').click();
}