mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
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();
|
||||
$mimes = array();
|
||||
|
||||
if (is_array($editorLink['mime'])){
|
||||
|
||||
foreach ($editorLink['mime'] as $mime => $value)
|
||||
foreach ((array)$editorLink['mime'] as $mime => $value)
|
||||
{
|
||||
$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');
|
||||
$document_doubleclick_action = array (
|
||||
'collabora' => lang('open documents with Collabora, if permissions are given'),
|
||||
|
Loading…
Reference in New Issue
Block a user