summaryrefslogtreecommitdiff
path: root/actions/apiaccountupdateprofile.php
diff options
context:
space:
mode:
authorRajat Upadhyaya <rajat.upadhyaya@taazza.com>2010-01-21 09:27:00 +0530
committerRajat Upadhyaya <rajat.upadhyaya@taazza.com>2010-01-21 09:27:00 +0530
commit6e405facca5f5b2df4171059796b8eb1aad7e635 (patch)
tree9eefaf7943eb8bab4d214f151b107399389cdfe9 /actions/apiaccountupdateprofile.php
parentfd276ff9e7a1292a217ddb144d600d04bc473d03 (diff)
Fix to update user's fullname & homepage only if requested.
Diffstat (limited to 'actions/apiaccountupdateprofile.php')
-rw-r--r--actions/apiaccountupdateprofile.php4
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;
}