From 62d8a2ba1f08ace5d08f18672ebe0fa4f4899e52 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Mon, 15 Nov 2021 16:22:33 +0100 Subject: [PATCH] Fix crash in activity panel when entry user is unknown --- .../Base/Layout/ActivityPanel/ActivityEntry/ActivityEntry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/application/UI/Base/Layout/ActivityPanel/ActivityEntry/ActivityEntry.php b/sources/application/UI/Base/Layout/ActivityPanel/ActivityEntry/ActivityEntry.php index fd35e4a4d..a4c917ffa 100644 --- a/sources/application/UI/Base/Layout/ActivityPanel/ActivityEntry/ActivityEntry.php +++ b/sources/application/UI/Base/Layout/ActivityPanel/ActivityEntry/ActivityEntry.php @@ -275,9 +275,9 @@ class ActivityEntry extends UIBlock /** * Return true if the current user is the author of the activity entry * - * @return bool + * @return bool|null Can be null depending on the source of creation of the entry */ - public function IsFromCurrentUser(): bool + public function IsFromCurrentUser(): ?bool { return $this->bIsFromCurrentUser; }