mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSerror : fix error formatting when no error code is provided
This commit is contained in:
parent
22dd1a61e6
commit
fa96fc42ab
1 changed files with 1 additions and 1 deletions
|
@ -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]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue