mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
fix for PHP Warning: Illegal string offset 'to_id' in api/src/Etemplate/Widget/Link.php on line 327
This commit is contained in:
parent
026fd08125
commit
ef5b160fdd
@ -326,6 +326,9 @@ class Link extends Etemplate\Widget
|
||||
// keep values added into request by other ajax-functions, eg. files draged into htmlarea (Vfs)
|
||||
if ((!$value || is_array($value) && !$value['to_id']) && is_array($expand['cont'][$this->id]) && !empty($expand['cont'][$this->id]['to_id']))
|
||||
{
|
||||
if (!is_array($value)) $value = array(
|
||||
'to_app' => $expand['cont'][$this->id]['to_app'],
|
||||
);
|
||||
$value['to_id'] = $expand['cont'][$this->id]['to_id'];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user