]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix bug in profile list owner check
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 18 Mar 2009 20:34:41 +0000 (16:34 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 18 Mar 2009 20:35:03 +0000 (16:35 -0400)
lib/profilelist.php

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