mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-20 07:23:47 +01:00
- LSformRule_maxlength : Correction d'une erreur de syntaxe
This commit is contained in:
parent
b6de64dac0
commit
6df5963a9c
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class LSformRule_maxlength extends LSformRule {
|
|||
*/
|
||||
function validate ($value,$options,$formElement) {
|
||||
if(!isset($options['params']['limit'])) {
|
||||
$GLOBALS['LSerror'] -> addErrorCode('LSformRule_01',array('type' => 'maxlength', 'param' => 'limit');
|
||||
$GLOBALS['LSerror'] -> addErrorCode('LSformRule_01',array('type' => 'maxlength', 'param' => 'limit'));
|
||||
return;
|
||||
}
|
||||
return (strlen($value)<=$options['params']['limit']);
|
||||
|
|
Loading…
Reference in a new issue