We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b6b13a6b authored by Zach Copley's avatar Zach Copley

Don't access current user without session

parent 6e166b24
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment