fix PHP 8.x Fatal: Cannot access offset of type string on string

This commit is contained in:
ralf 2022-11-02 10:48:41 +01:00
parent 1808255b6b
commit 9cd64b1e5b

View File

@ -428,7 +428,7 @@ class Link extends Link\Storage
$id1[$link_id] = array(
'app' => $app2,
'id' => $id2,
'title' => $id2['title'] ?? $id2['name'],
'title' => is_array($id2) ? $id2['title'] ?? $id2['name'] : null,
'remark' => $remark,
'owner' => $owner,
'link_id' => $link_id,