From e0ff57e8c2958ae5dde0cb7bf9b167abd5ef933e Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Wed, 24 Aug 2011 23:37:45 +0200
Subject: [PATCH] fix javascript error in media player

---
 apps/media/js/collection.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/media/js/collection.js b/apps/media/js/collection.js
index af26737b942..266ed2f83ce 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(collection.length==0){
+					if(data.songs[i].length==0){
 						$('#scan input.start').val(t('media','Scan Collection'));
 						$('#scan input.start').click();
 					}
-- 
GitLab