This commit is contained in:
Matteo Gheza 2021-03-05 23:00:52 +01:00
parent 6aa34b41e5
commit 5317ba0a6f
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ class user
public function nameById($id)
{
foreach($this->profile_names as $profile) {
if($profile["id"] == $id) {
if($profile["id"] == $id && !is_null($profile["name"])) {
return(s($profile["name"], false));
} else {
foreach($this->user_names as $user) {