From 9cd64b1e5b253813d9705e8cde12969bb6a60ba2 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 2 Nov 2022 10:48:41 +0100 Subject: [PATCH] fix PHP 8.x Fatal: Cannot access offset of type string on string --- api/src/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Link.php b/api/src/Link.php index cf1c8103e1..dbe746bea4 100644 --- a/api/src/Link.php +++ b/api/src/Link.php @@ -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,