- LSformRule_maxlength : Correction d'une erreur de syntaxe

This commit is contained in:
Benjamin Renard 2009-01-14 10:28:10 +00:00
parent b6de64dac0
commit 6df5963a9c

View file

@ -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']);