fix Cannot access offset of type string on string

This commit is contained in:
ralf 2023-11-25 12:31:05 +02:00
parent 8186874267
commit 057ff20f3a

View File

@ -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;