From fa96fc42ab4dd53c40831c604ed0b557cd8f9b42 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 17 Jun 2019 13:34:02 +0200 Subject: [PATCH] LSerror : fix error formatting when no error code is provided --- public_html/includes/class/class.LSerror.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSerror.php b/public_html/includes/class/class.LSerror.php index a3337645..57dd4939 100644 --- a/public_html/includes/class/class.LSerror.php +++ b/public_html/includes/class/class.LSerror.php @@ -132,7 +132,7 @@ class LSerror { * @retvat string Le texte des erreurs */ private static function getError($error) { - return "(Code ".htmlentities($error[0]).") ".htmlentities(getFData(self :: $_errorCodes[$error[0]]['msg'],$error[1])); + return ($error[0]?"(Code ".htmlentities($error[0]).") ":"").htmlentities(getFData(self :: $_errorCodes[$error[0]]['msg'],$error[1])); } /**