mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fixed, PHP message: PHP Warning: Invalid argument supplied for foreach()
This commit is contained in:
parent
3aa38ffbdf
commit
f4e771d49e
@ -234,6 +234,9 @@ class filemanager_hooks
|
|||||||
}
|
}
|
||||||
$editorLink = self::getEditorLink();
|
$editorLink = self::getEditorLink();
|
||||||
$mimes = array();
|
$mimes = array();
|
||||||
|
|
||||||
|
if (is_array($editorLink['mime'])){
|
||||||
|
|
||||||
foreach ($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.')';
|
||||||
@ -243,6 +246,9 @@ class filemanager_hooks
|
|||||||
$mimes[$mime] .= ', '.strtoupper(implode(', ', $value['extra_extensions']));
|
$mimes[$mime] .= ', '.strtoupper(implode(', ', $value['extra_extensions']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$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