mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LSerror : Remove </br> on getError() method and add it on getErrors()
This commit is contained in:
parent
81ef2eaacf
commit
a53c5c3d92
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ class LSerror {
|
||||||
public static function getErrors() {
|
public static function getErrors() {
|
||||||
if(!empty($_SESSION['LSerror'])) {
|
if(!empty($_SESSION['LSerror'])) {
|
||||||
foreach ($_SESSION['LSerror'] as $error) {
|
foreach ($_SESSION['LSerror'] as $error) {
|
||||||
$txt.=self::getError($error);
|
$txt.=self::getError($error)."<br />\n";
|
||||||
}
|
}
|
||||||
self::resetError();
|
self::resetError();
|
||||||
return $txt;
|
return $txt;
|
||||||
|
@ -130,7 +130,7 @@ class LSerror {
|
||||||
* @retvat string Le texte des erreurs
|
* @retvat string Le texte des erreurs
|
||||||
*/
|
*/
|
||||||
private static function getError($error) {
|
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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue