From: Rajat Upadhyaya Date: Thu, 21 Jan 2010 03:57:00 +0000 (+0530) Subject: Fix to update user's fullname & homepage only if requested. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6e405facca5f5b2df4171059796b8eb1aad7e635;p=quix0rs-gnu-social.git Fix to update user's fullname & homepage only if requested. --- 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; }