]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't access current user without session
authorZach Copley <zach@status.net>
Wed, 21 Sep 2011 00:40:27 +0000 (00:40 +0000)
committerZach Copley <zach@status.net>
Wed, 21 Sep 2011 00:40:27 +0000 (00:40 +0000)
actions/all.php

index 2b83127f72ad5025506b399e4dec4779de084b50..a987ebbadbc135aaa1b9af5b1f00a26b5182c736 100644 (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 {