From: Evan Prodromou Date: Mon, 14 Mar 2011 20:55:55 +0000 (-0400) Subject: fix bug with undefined variable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=07d9cca0040e8124ed7c5c35965c76932aed3272;p=quix0rs-gnu-social.git fix bug with undefined variable --- diff --git a/lib/accountprofileblock.php b/lib/accountprofileblock.php index e75527b288..f31503353d 100644 --- a/lib/accountprofileblock.php +++ b/lib/accountprofileblock.php @@ -81,7 +81,7 @@ class AccountProfileBlock extends ProfileBlock function canEdit() { $user = common_current_user(); - return ((!empty($user)) && ($user->id == $profile->id)); + return ((!empty($user)) && ($user->id == $this->profile->id)); } function editUrl()