sforkowany z mirror/friendica
Fix notice "Undefined offset: 1"
rodzic
860a25eb38
commit
4debd8bdcb
|
@ -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 = '';
|
||||
|
|
Ładowanie…
Reference in New Issue