diff options
author | Rajat Upadhyaya <rajat.upadhyaya@taazza.com> | 2010-01-21 09:27:00 +0530 |
---|---|---|
committer | Rajat Upadhyaya <rajat.upadhyaya@taazza.com> | 2010-01-21 09:27:00 +0530 |
commit | 6e405facca5f5b2df4171059796b8eb1aad7e635 (patch) | |
tree | 9eefaf7943eb8bab4d214f151b107399389cdfe9 /actions/apiaccountupdateprofile.php | |
parent | fd276ff9e7a1292a217ddb144d600d04bc473d03 (diff) |
Fix to update user's fullname & homepage only if requested.
Diffstat (limited to 'actions/apiaccountupdateprofile.php')
-rw-r--r-- | actions/apiaccountupdateprofile.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/apiaccountupdateprofile.php b/actions/apiaccountupdateprofile.php index fd4384a25..9b371ea95 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; } |