summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/helper.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 0c6c73aa76b..75942f092cf 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -284,9 +284,7 @@ class OC_Helper {
$isWrapped=(strpos($path,'://')!==false) and (substr($path,0,7)=='file://');
$mimeType='application/octet-stream';
if ($mimeType=='application/octet-stream') {
- if(count(self::$mimetypes)>0){
- self::$mimetypes = include('mimetypes.fixlist.php');
- }
+ self::$mimetypes = include('mimetypes.fixlist.php');
$extention=strtolower(strrchr(basename($path), "."));
$extention=substr($extention,1);//remove leading .
$mimeType=(isset(self::$mimetypes[$extention]))?self::$mimetypes[$extention]:'application/octet-stream';