From a968c369dbf57997a69f71ea7858277e8babbfc9 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 13 Mar 2024 13:53:01 +0200 Subject: [PATCH] fix PHP TypeError: Cannot use object of type EGroupware\Stylite\Link\Sharing as array --- api/src/Storage/History.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Storage/History.php b/api/src/Storage/History.php index 8dd1396d7f..a073cc3e09 100644 --- a/api/src/Storage/History.php +++ b/api/src/Storage/History.php @@ -181,7 +181,7 @@ class History foreach(isset($GLOBALS['egw']->sharing) ? $GLOBALS['egw']->sharing : [] as $token => $share_obj) { // Make sure share is of the correct type to access an entry, and it is the correct entry - if($share_obj instanceof Api\Link\Sharing && "$appname::$id" === $share_obj['share_path']) + if($share_obj instanceof Api\Link\Sharing && "$appname::$id" === $share_obj->get_path()) { $share_with .= $share_obj->get_share_with(); }