From: Zach Copley Date: Wed, 21 Sep 2011 00:40:27 +0000 (+0000) Subject: Don't access current user without session X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6b13a6bc7a435d9a651abb31bc3b48439aa07a0;p=quix0rs-gnu-social.git Don't access current user without session --- 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 {