From 6e405facca5f5b2df4171059796b8eb1aad7e635 Mon Sep 17 00:00:00 2001 From: Rajat Upadhyaya Date: Thu, 21 Jan 2010 09:27:00 +0530 Subject: [PATCH] Fix to update user's fullname & homepage only if requested. --- actions/apiaccountupdateprofile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/apiaccountupdateprofile.php b/actions/apiaccountupdateprofile.php index fd4384a25c..9b371ea957 100644 --- a/actions/apiaccountupdateprofile.php +++ b/actions/apiaccountupdateprofile.php @@ -115,11 +115,11 @@ class ApiAccountUpdateProfileAction extends ApiAuthAction $original = clone($profile); - if (empty($this->name)) { + if (!empty($this->name)) { $profile->fullname = $this->name; } - if (empty($this->url)) { + if (!empty($this->url)) { $profile->homepage = $this->url; }