From b9a44fc76bbe4fe4f84f8fdfe0b41ab278b82fe3 Mon Sep 17 00:00:00 2001 From: ATM-Nicolas Date: Tue, 31 Jul 2018 12:15:18 +0200 Subject: [PATCH] FIX : Wrong position of firstname lastname --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index d9c86dd45f4..7b8d110802c 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -5856,7 +5856,7 @@ function dolGetFirstLastname($firstname,$lastname,$nameorder=-1) $ret=''; // If order not defined, we use the setup if ($nameorder < 0) $nameorder=$conf->global->MAIN_FIRSTNAME_NAME_POSITION; - if ($nameorder && ((string) $nameorder != '2')) + if (empty($nameorder) && ((string) $nameorder != '2')) { $ret.=$firstname; if ($firstname && $lastname) $ret.=' ';