mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fixed, PHP Warning: Invalid argument supplied for foreach(),cast array
This commit is contained in:
parent
f4e771d49e
commit
486ca59f86
@ -235,18 +235,14 @@ class filemanager_hooks
|
||||
$editorLink = self::getEditorLink();
|
||||
$mimes = array();
|
||||
|
||||
if (is_array($editorLink['mime'])){
|
||||
foreach ((array)$editorLink['mime'] as $mime => $value)
|
||||
{
|
||||
$mimes[$mime] = lang('%1 file', strtoupper($value['ext'])).' ('.$mime.')';
|
||||
|
||||
foreach ($editorLink['mime'] as $mime => $value)
|
||||
if (!empty($value['extra_extensions']))
|
||||
{
|
||||
$mimes[$mime] = lang('%1 file', strtoupper($value['ext'])).' ('.$mime.')';
|
||||
|
||||
if (!empty($value['extra_extensions']))
|
||||
{
|
||||
$mimes[$mime] .= ', '.strtoupper(implode(', ', $value['extra_extensions']));
|
||||
}
|
||||
$mimes[$mime] .= ', '.strtoupper(implode(', ', $value['extra_extensions']));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$merge_open_handler = array ('download' => lang('download'), 'collabora' => 'Collabora');
|
||||
|
Loading…
Reference in New Issue
Block a user