From d6bf90cfb7ba2613be5994d0090272c74fa7abbc Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 17 Feb 2016 22:43:45 +0100 Subject: [PATCH] If profile fullname is 0 chars use nickname --- actions/profilesettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2