make jenkins happy
This commit is contained in:
parent
53830f2f75
commit
ec75e1904d
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue