From: Tobias Diekershoff Date: Mon, 28 Sep 2020 12:30:01 +0000 (+0200) Subject: Merge pull request #9307 from annando/notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=584383101a61cad23ecdbc764976810c78ef9098;hp=178e506917c940f6866ae6394872384713f42395;p=friendica.git Merge pull request #9307 from annando/notice Fix notice "Undefined index: accounttype" --- 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'])) {