mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Fixed, PHP Warning: Invalid argument supplied for foreach(),cast array
This commit is contained in:
parent
6175e88048
commit
bc27c94e52
@ -237,9 +237,8 @@ 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.')';
|
||||
|
||||
@ -249,8 +248,6 @@ class filemanager_hooks
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
asort($mimes);
|
||||
$settings += array (
|
||||
'sections.2' => array(
|
||||
|
Loading…
Reference in New Issue
Block a user