summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-04-08 16:56:10 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:25 +0200
commit83d68107253834aa5322198295c827d94e951e90 (patch)
tree146e6d9c734cca86edc3201c800dcf9d5262479a /apps/files
parent496743523729b69e311c170a810182f95568fb7d (diff)
downloadnextcloud-server-83d68107253834aa5322198295c827d94e951e90.tar.gz
nextcloud-server-83d68107253834aa5322198295c827d94e951e90.zip
don't overwrite shared folder icon
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/helper.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index 2e3741cbdca..88a5ffcfb61 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -37,8 +37,7 @@ class Helper
$sid = explode(':', $sid);
if ($sid[0] === 'shared') {
$icon = \OC_Helper::mimetypeIcon('dir-shared');
- }
- if ($sid[0] !== 'local' and $sid[0] !== 'home') {
+ } elseif ($sid[0] !== 'local' and $sid[0] !== 'home') {
$icon = \OC_Helper::mimetypeIcon('dir-external');
}
}