summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-06-07 00:22:05 +0200
committerRobin Appelman <icewind@owncloud.com>2013-06-07 00:22:05 +0200
commit85abede9bf91b0bdbc2bbb938dc2cb5ef26fd361 (patch)
tree1372ccefd84607239c2d722f88e7529e977e6fed /lib/helper.php
parent0470a5ba94d08447c169114387783d87c70c4382 (diff)
downloadnextcloud-server-85abede9bf91b0bdbc2bbb938dc2cb5ef26fd361.tar.gz
nextcloud-server-85abede9bf91b0bdbc2bbb938dc2cb5ef26fd361.zip
actually return result
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 84ebcf1d558..a315c640d1a 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -377,9 +377,9 @@ class OC_Helper {
}
$extension=strtolower(strrchr(basename($path), "."));
$extension=substr($extension, 1);//remove leading .
- $mimeType=(isset(self::$mimetypes[$extension]))?self::$mimetypes[$extension]:'application/octet-stream';
+ return (isset(self::$mimetypes[$extension]))?self::$mimetypes[$extension]:'application/octet-stream';
}else{
- $mimeType='application/octet-stream';
+ return 'application/octet-stream';
}
}