]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If profile fullname is 0 chars use nickname
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 17 Feb 2016 21:43:45 +0000 (22:43 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 17 Feb 2016 21:43:45 +0000 (22:43 +0100)
actions/profilesettings.php

index 5804f21ca59d817d37642a3ccea537d5b6bdd607..a20615b019480fd4c64b9dce681b24aa3f71a711 100644 (file)
@@ -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;