Fix notice "Undefined offset: 1"

This commit is contained in:
Michael 2020-10-05 20:34:57 +00:00
parent 860a25eb38
commit 4debd8bdcb
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ function network_init(App $a)
DI::page()['aside'] = ''; 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]; $accounttype = $a->argv[1];
} else { } else {
$accounttype = ''; $accounttype = '';