aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-28 23:06:20 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-28 23:34:39 +0200
commitab81128e5c391b931abf15a5d74e70975de01e07 (patch)
tree45b60e9bef0e3118f63e11ceae8edcb924cc6d0c /apps
parentf1c2b5b304c2dab05468c82dc133155cc3b1fa7f (diff)
downloadnextcloud-server-ab81128e5c391b931abf15a5d74e70975de01e07.tar.gz
nextcloud-server-ab81128e5c391b931abf15a5d74e70975de01e07.zip
dont throw error when the collection scanner cant detect the length of an audio file
Diffstat (limited to 'apps')
-rw-r--r--apps/media/lib_scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/lib_scanner.php b/apps/media/lib_scanner.php
index 296acbdbaa9..6ad04e7a1be 100644
--- a/apps/media/lib_scanner.php
+++ b/apps/media/lib_scanner.php
@@ -139,7 +139,7 @@ class OC_MEDIA_SCANNER{
}
$size=$data['filesize'];
$track=(isset($data['comments']['track']))?$data['comments']['track'][0]:0;
- $length=round($data['playtime_seconds']);
+ $length=isset($data['playtime_seconds'])?round($data['playtime_seconds']):0;
}
if(!isset(self::$artists[$artist])){
$artistId=OC_MEDIA_COLLECTION::addArtist($artist);