From: Mikael Nordfeldth Date: Wed, 17 Feb 2016 21:43:45 +0000 (+0100) Subject: If profile fullname is 0 chars use nickname X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6bf90cfb7ba2613be5994d0090272c74fa7abbc;p=quix0rs-gnu-social.git If profile fullname is 0 chars use nickname --- diff --git a/actions/profilesettings.php b/actions/profilesettings.php index 5804f21ca5..a20615b019 100644 --- a/actions/profilesettings.php +++ b/actions/profilesettings.php @@ -345,7 +345,7 @@ class ProfilesettingsAction extends SettingsAction $this->scoped->nickname = $nickname; $this->scoped->profileurl = common_profile_url($this->scoped->getNickname()); } - $this->scoped->fullname = $fullname; + $this->scoped->fullname = (mb_strlen($fullname)>0 ? $fullname : $this->scoped->nickname); $this->scoped->homepage = $homepage; $this->scoped->bio = $bio; $this->scoped->location = $location;