Merge pull request #9307 from annando/notice
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 28 Sep 2020 12:30:01 +0000 (14:30 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Sep 2020 12:30:01 +0000 (14:30 +0200)
Fix notice "Undefined index: accounttype"

src/Module/Conversation/Community.php

index 6d42921..88093c8 100644 (file)
@@ -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'])) {