From 07d9cca0040e8124ed7c5c35965c76932aed3272 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 14 Mar 2011 16:55:55 -0400 Subject: [PATCH] fix bug with undefined variable --- lib/accountprofileblock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5