Use new function for validity check
This commit is contained in:
parent
35d8b078ce
commit
2d4a3f482b
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ function network_init(App $a)
|
|||
DI::page()['aside'] = '';
|
||||
}
|
||||
|
||||
if (!empty($a->argv[1]) && in_array($a->argv[1], ['person', 'organisation', 'news', 'community'])) {
|
||||
if (!empty(User::getAccountTypeByString($a->argv[1] ?? ''))) {
|
||||
$accounttype = $a->argv[1];
|
||||
} else {
|
||||
$accounttype = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue