From: Georg Ehrke Date: Thu, 11 Jul 2013 10:28:41 +0000 (+0200) Subject: make jenkins happy X-Git-Tag: v6.0.0alpha2~235^2~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec75e1904d9d4c77d1a6c1c656e7deeae07a8804;p=nextcloud-server.git make jenkins happy --- diff --git a/lib/preview/unknown.php b/lib/preview/unknown.php index 4e1ca7de741..a31b365722e 100644 --- a/lib/preview/unknown.php +++ b/lib/preview/unknown.php @@ -22,7 +22,11 @@ class Unknown extends Provider { $iconsroot = \OC::$SERVERROOT . '/core/img/filetypes/'; - $icons = array($mimetype, $type, 'text'); + if(isset($type)){ + $icons = array($mimetype, $type, 'text'); + }else{ + $icons = array($mimetype, 'text'); + } foreach($icons as $icon) { $icon = str_replace('/', '-', $icon);