make jenkins happy

This commit is contained in:
Georg Ehrke 2013-07-11 12:28:41 +02:00
parent 53830f2f75
commit ec75e1904d

View file

@ -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);