From b6b13a6bc7a435d9a651abb31bc3b48439aa07a0 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 21 Sep 2011 00:40:27 +0000 Subject: [PATCH] Don't access current user without session --- actions/all.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/all.php b/actions/all.php index 2b83127f72..a987ebbadb 100644 --- a/actions/all.php +++ b/actions/all.php @@ -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 {