diff options
author | Adrian Lang <mail@adrianlang.de> | 2009-03-03 16:12:05 +0100 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2009-03-09 08:06:31 +0100 |
commit | fbe794e44d235d2f66ef418796f87947631afb6a (patch) | |
tree | 0ce90398638bdb938ebab6b3b400a3aaece0cc90 /actions/finishremotesubscribe.php | |
parent | 6ab9d6b14016cf97fe1a31d89591e1a0e919c8a7 (diff) |
Improve handling of null values in profile parameters.
This commit fixes two issues:
- Allowing remote users to clear profile parameters via OMB.
- Improved handling of profile parameters which evaluate to
false ('0' for example)
Diffstat (limited to 'actions/finishremotesubscribe.php')
-rw-r--r-- | actions/finishremotesubscribe.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actions/finishremotesubscribe.php b/actions/finishremotesubscribe.php index acfacbdc1..eaf57c2d8 100644 --- a/actions/finishremotesubscribe.php +++ b/actions/finishremotesubscribe.php @@ -136,16 +136,16 @@ class FinishremotesubscribeAction extends Action $profile->nickname = $nickname; $profile->profileurl = $profile_url; - if ($fullname) { + if (!is_null($fullname)) { $profile->fullname = $fullname; } - if ($homepage) { + if (!is_null($homepage)) { $profile->homepage = $homepage; } - if ($bio) { + if (!is_null($bio)) { $profile->bio = $bio; } - if ($location) { + if (!is_null($location)) { $profile->location = $location; } |