From 52e150551e4720fd8cb075e38af77f0190a06ed5 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 28 Sep 2020 11:27:48 +0000 Subject: [PATCH] Fix notice "Undefined index: accounttype" --- src/Module/Conversation/Community.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Module/Conversation/Community.php b/src/Module/Conversation/Community.php index 6d42921ef5..88093c83ad 100644 --- a/src/Module/Conversation/Community.php +++ b/src/Module/Conversation/Community.php @@ -99,7 +99,10 @@ class Community extends BaseModule ]); if (local_user() && DI::config()->get('system', 'community_no_sharer')) { - $path = self::$content . ($parameters['accounttype'] ? '/' . $parameters['accounttype'] : ''); + $path = self::$content; + if (!empty($parameters['accounttype'])) { + $path .= '/' . $parameters['accounttype']; + } $query_parameters = []; if (!empty($_GET['since_id'])) {