From 85042361c43e32297b6722d7fb97b2302fb22f3f Mon Sep 17 00:00:00 2001 From: ralf Date: Sun, 8 Dec 2024 15:48:14 +0100 Subject: [PATCH] Fix TypeError about string array index on string --- api/src/Etemplate/Widget/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Link.php b/api/src/Etemplate/Widget/Link.php index 970cee5a81..70837994a7 100644 --- a/api/src/Etemplate/Widget/Link.php +++ b/api/src/Etemplate/Widget/Link.php @@ -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)) {