forked from extern/egroupware
Fixed, PHP Warning: Invalid argument supplied for foreach(),cast array
This commit is contained in:
parent
f4e771d49e
commit
486ca59f86
@ -235,9 +235,7 @@ class filemanager_hooks
|
|||||||
$editorLink = self::getEditorLink();
|
$editorLink = self::getEditorLink();
|
||||||
$mimes = array();
|
$mimes = array();
|
||||||
|
|
||||||
if (is_array($editorLink['mime'])){
|
foreach ((array)$editorLink['mime'] as $mime => $value)
|
||||||
|
|
||||||
foreach ($editorLink['mime'] as $mime => $value)
|
|
||||||
{
|
{
|
||||||
$mimes[$mime] = lang('%1 file', strtoupper($value['ext'])).' ('.$mime.')';
|
$mimes[$mime] = lang('%1 file', strtoupper($value['ext'])).' ('.$mime.')';
|
||||||
|
|
||||||
@ -247,8 +245,6 @@ class filemanager_hooks
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
$merge_open_handler = array ('download' => lang('download'), 'collabora' => 'Collabora');
|
$merge_open_handler = array ('download' => lang('download'), 'collabora' => 'Collabora');
|
||||||
$document_doubleclick_action = array (
|
$document_doubleclick_action = array (
|
||||||
'collabora' => lang('open documents with Collabora, if permissions are given'),
|
'collabora' => lang('open documents with Collabora, if permissions are given'),
|
||||||
|
Loading…
Reference in New Issue
Block a user