Fix to update user's fullname & homepage only if requested.

This commit is contained in:
Rajat Upadhyaya 2010-01-21 09:27:00 +05:30
parent fd276ff9e7
commit 6e405facca
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}