Merge pull request #9307 from annando/notice

Fix notice "Undefined index: accounttype"
This commit is contained in:
Tobias Diekershoff 2020-09-28 14:30:01 +02:00 committed by GitHub
commit 584383101a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View 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'])) {