forked from GNUsocial/gnu-social
Don't access current user without session
This commit is contained in:
parent
6e166b2418
commit
b6b13a6bc7
@ -85,7 +85,7 @@ class AllAction extends ProfileAction
|
||||
function title()
|
||||
{
|
||||
$user = common_current_user();
|
||||
if ($user->id == $this->user->id) {
|
||||
if (!empty($user) && $user->id == $this->user->id) {
|
||||
// TRANS: Title of a user's own start page.
|
||||
return _('Home timeline');
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user