]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice "Undefined offset: 1"
authorMichael <heluecht@pirati.ca>
Mon, 5 Oct 2020 20:34:57 +0000 (20:34 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 5 Oct 2020 20:34:57 +0000 (20:34 +0000)
mod/network.php

index e117ad8c00f640813bba9cead4a18744262b95aa..4dfd39cd900b80419cae5da21823557834ad34c1 100644 (file)
@@ -132,7 +132,7 @@ function network_init(App $a)
                DI::page()['aside'] = '';
        }
 
-       if (in_array($a->argv[1], ['person', 'organisation', 'news', 'community'])) {
+       if (!empty($a->argv[1]) && in_array($a->argv[1], ['person', 'organisation', 'news', 'community'])) {
                $accounttype = $a->argv[1];
        } else {
                $accounttype = '';