LSerror : Remove </br> on getError() method and add it on getErrors()

This commit is contained in:
Benjamin Renard 2011-04-22 14:28:45 +02:00
parent 81ef2eaacf
commit a53c5c3d92

View file

@ -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)."<br />\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])."<br />\n";
return "(Code ".$error[0].") ".getFData(self :: $_errorCodes[$error[0]]['msg'],$error[1]);
}
/**