mirror of
https://github.com/friendica/friendica
synced 2025-04-28 17:44:22 +02:00
Add checks for $a->user existence
- Variable can be empty/null in many cases
This commit is contained in:
parent
ad66a92deb
commit
cb03418937
4 changed files with 8 additions and 8 deletions
|
@ -276,7 +276,7 @@ class Page implements ArrayAccess
|
|||
// If you're just visiting, let javascript take you home
|
||||
if (!empty($_SESSION['visitor_home'])) {
|
||||
$homebase = $_SESSION['visitor_home'];
|
||||
} elseif (local_user()) {
|
||||
} elseif (!empty($app->user['nickname'])) {
|
||||
$homebase = 'profile/' . $app->user['nickname'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue