Don't access current user without session

This commit is contained in:
Zach Copley 2011-09-21 00:40:27 +00:00
parent 6e166b2418
commit b6b13a6bc7

View File

@ -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 {