From a53c5c3d920f0086e4ec21d7cd88d7b322ca84b0 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 22 Apr 2011 14:28:45 +0200 Subject: [PATCH] LSerror : Remove
on getError() method and add it on getErrors() --- public_html/includes/class/class.LSerror.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/includes/class/class.LSerror.php b/public_html/includes/class/class.LSerror.php index d9ed63c3..d1d03e9c 100644 --- a/public_html/includes/class/class.LSerror.php +++ b/public_html/includes/class/class.LSerror.php @@ -114,7 +114,7 @@ class LSerror { public static function getErrors() { if(!empty($_SESSION['LSerror'])) { foreach ($_SESSION['LSerror'] as $error) { - $txt.=self::getError($error); + $txt.=self::getError($error)."
\n"; } self::resetError(); return $txt; @@ -130,7 +130,7 @@ class LSerror { * @retvat string Le texte des erreurs */ private static function getError($error) { - return "(Code ".$error[0].") ".getFData(self :: $_errorCodes[$error[0]]['msg'],$error[1])."
\n"; + return "(Code ".$error[0].") ".getFData(self :: $_errorCodes[$error[0]]['msg'],$error[1]); } /**