mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSformRule_minlength : Fix php syntax bug.
This commit is contained in:
parent
1a51d5b754
commit
046d6f8004
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class LSformRule_minlength extends LSformRule {
|
||||||
*/
|
*/
|
||||||
function validate ($value,$options,$formElement) {
|
function validate ($value,$options,$formElement) {
|
||||||
if(!isset($options['params']['limit'])) {
|
if(!isset($options['params']['limit'])) {
|
||||||
LSerror :: addErrorCode('LSformRule_01',array('type' => 'minlength', 'param' => 'limit');
|
LSerror :: addErrorCode('LSformRule_01',array('type' => 'minlength', 'param' => 'limit'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return (strlen($value)>=$options['params']['limit']);
|
return (strlen($value)>=$options['params']['limit']);
|
||||||
|
|
Loading…
Reference in a new issue