Fix TypeError about string array index on string

This commit is contained in:
ralf 2024-12-08 15:48:14 +01:00
parent 69f7ea7687
commit 5092b663f4

View File

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