From 057ff20f3a8b80cd7c8dbdf417cce35d5399a760 Mon Sep 17 00:00:00 2001 From: ralf Date: Sat, 25 Nov 2023 12:31:05 +0200 Subject: [PATCH] fix Cannot access offset of type string on string --- api/src/Etemplate/Widget/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Entry.php b/api/src/Etemplate/Widget/Entry.php index 130693e764..5e1040143c 100644 --- a/api/src/Etemplate/Widget/Entry.php +++ b/api/src/Etemplate/Widget/Entry.php @@ -180,7 +180,7 @@ abstract class Entry extends Transformer $id = is_array($data) ? static::get_array($data, $data_id) : $data; if(!$app || !$type || !isset($GLOBALS['egw_info']['apps'][$app]) || !$id || // Simple CF, already there - isset($data[$attrs['field']]) + is_array($data) && isset($data[$attrs['field']]) ) { return;