mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
Merge pull request #64 from asig2016/17.1_fix1
Fixed, PHP Warning: Invalid argument supplied for foreach(), cast array
This commit is contained in:
commit
5d3d3a9930
@ -236,15 +236,18 @@ class filemanager_hooks
|
|||||||
}
|
}
|
||||||
$editorLink = self::getEditorLink();
|
$editorLink = self::getEditorLink();
|
||||||
$mimes = array();
|
$mimes = array();
|
||||||
foreach ($editorLink['mime'] as $mime => $value)
|
|
||||||
{
|
|
||||||
$mimes[$mime] = lang('%1 file', strtoupper($value['ext'])).' ('.$mime.')';
|
|
||||||
|
|
||||||
if (!empty($value['extra_extensions']))
|
|
||||||
|
foreach ((array)$editorLink['mime'] as $mime => $value)
|
||||||
{
|
{
|
||||||
$mimes[$mime] .= ', '.strtoupper(implode(', ', $value['extra_extensions']));
|
$mimes[$mime] = lang('%1 file', strtoupper($value['ext'])).' ('.$mime.')';
|
||||||
|
|
||||||
|
if (!empty($value['extra_extensions']))
|
||||||
|
{
|
||||||
|
$mimes[$mime] .= ', '.strtoupper(implode(', ', $value['extra_extensions']));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
asort($mimes);
|
asort($mimes);
|
||||||
$settings += array (
|
$settings += array (
|
||||||
'sections.2' => array(
|
'sections.2' => array(
|
||||||
|
Loading…
Reference in New Issue
Block a user