Fix TypeError about string array index on string

This commit is contained in:
ralf 2024-12-08 15:48:14 +01:00
parent d3f71bd5fc
commit 85042361c4

View File

@ -414,7 +414,7 @@ class Link extends Etemplate\Widget
$value = $value_in =& self::get_array($content, $form_name, false, true);
// 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((!$value || is_array($value) && !$value['to_id']) && is_array($expand['cont']) && is_array($expand['cont'][$this->id]) && !empty($expand['cont'][$this->id]['to_id']))
{
if(!is_array($value))
{