X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofiles.php;h=74844ff42efad0d6fb5965316facf567a5461d7b;hb=a4f25f6eaad9f32cd034e1eb2cfa31918cb7b30b;hp=975a8c21273278677be43fbe812959f5bd0f0ebb;hpb=1f09e7ad23f1f3982f44e9b2c9a1e6d08da7f825;p=friendica.git diff --git a/mod/profiles.php b/mod/profiles.php index 975a8c2127..74844ff42e 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -48,10 +48,15 @@ function profiles_post(&$a) { $name = notags(trim($_POST['name'])); + if(! strlen($name)) { + $name = '[No Name]'; + } + if($orig[0]['name'] != $name) $namechanged = true; + $pdesc = notags(trim($_POST['pdesc'])); $gender = notags(trim($_POST['gender'])); $address = notags(trim($_POST['address']));