]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Another undefined object member.
authorAdrian Lang <mail@adrianlang.de>
Sat, 7 Mar 2009 01:03:45 +0000 (02:03 +0100)
committerAdrian Lang <mail@adrianlang.de>
Wed, 11 Mar 2009 09:39:06 +0000 (10:39 +0100)
lib/profilelist.php

index 898200d2dbbe86b925b60eb81b6b805b5e8a0be1..766189ab4cbb7812f52e960fec7f9c2914c511c3 100644 (file)
@@ -89,7 +89,7 @@ class ProfileList extends Widget
                                              'id' => 'profile-' . $this->profile->id));
 
         $user = common_current_user();
-        $is_own = !is_null($user) && ($user->id === $this->user->id);
+        $is_own = !is_null($user) && isset($this->user) && ($user->id === $this->user->id);
 
         $this->out->elementStart('div', 'entity_profile vcard');