Commit ff1c4514 authored by hass's avatar hass
Browse files

Issue #2874168 by hass: Empty realname bubble into site

parent e579b668
......@@ -350,7 +350,10 @@ function realname_update($account) {
// Allow modules to react to the realname being updated.
module_invoke_all('realname_update', $realname, $account);
$account->realname = $realname;
// Only if the real name is a non-empty string the name is altered.
if (drupal_strlen($realname)) {
$account->realname = $realname;
}
return $realname;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment