From 201f9badeb6fb3c816db0205b371a23f65662c63 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 6 Mar 2020 09:22:21 +0100 Subject: [PATCH] elseif --- htdocs/core/customreports.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/customreports.php b/htdocs/core/customreports.php index d46a9a1b412..3c804fb3f0f 100644 --- a/htdocs/core/customreports.php +++ b/htdocs/core/customreports.php @@ -231,7 +231,7 @@ if (is_array($search_groupby) && count($search_groupby)) { while ($obj = $db->fetch_object($resql)) { if (is_null($obj->val)) $valuetranslated = $langs->transnoentitiesnoconv("NotDefined"); - else if ($obj->val === '') $valuetranslated = $langs->transnoentitiesnoconv("Empty"); + elseif ($obj->val === '') $valuetranslated = $langs->transnoentitiesnoconv("Empty"); else $valuetranslated = $obj->val; if (!empty($object->fields[$gvalwithoutprefix]['arrayofkeyval'])) { $valuetranslated = $object->fields[$gvalwithoutprefix]['arrayofkeyval'][$obj->val];