]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice "Undefined index: accounttype"
authorMichael <heluecht@pirati.ca>
Mon, 28 Sep 2020 11:27:48 +0000 (11:27 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 28 Sep 2020 11:27:48 +0000 (11:27 +0000)
src/Module/Conversation/Community.php

index 6d42921ef5d351395cffa21e34e1704208bcb350..88093c83ad68c7aa2a53307984483e8bf88dbcef 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'])) {