diff --git a/workflow/engine/classes/class.configuration.php b/workflow/engine/classes/class.configuration.php index c050d9ff1..2b3ab3c07 100755 --- a/workflow/engine/classes/class.configuration.php +++ b/workflow/engine/classes/class.configuration.php @@ -322,7 +322,9 @@ class Configurations // extends Configuration $aux = str_replace('@userName', trim($username), $this->UserConfig['format']); $theFormat = $this->UserConfig['format']; - if (strpos($theFormat, ',') !== false && ($oUser->getUsrFirstname() == '' || $oUser->getUsrLastname() == '')) { + $fname = $oUser->getUsrFirstname(); + $lname = $oUser->getUsrLastname(); + if (strpos($theFormat, ',') !== false && ( trim($fname) == '' || trim($lname) == '')) { $theFormat = str_replace(',', '', $theFormat); }