mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 21:01:30 +02:00
fix PHP TypeError: Cannot use object of type EGroupware\Stylite\Link\Sharing as array
This commit is contained in:
parent
be4cc0e4e4
commit
a968c369db
@ -181,7 +181,7 @@ class History
|
|||||||
foreach(isset($GLOBALS['egw']->sharing) ? $GLOBALS['egw']->sharing : [] as $token => $share_obj)
|
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
|
// 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();
|
$share_with .= $share_obj->get_share_with();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user