mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSformRule::rangelength : fixed incorrect error message when limits paremeter isn't defined.
This commit is contained in:
parent
03c543f842
commit
1136dfedea
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class LSformRule_rangelength extends LSformRule {
|
|||
*/
|
||||
function validate ($value,$options=array(),$formElement) {
|
||||
if(!isset($options['params']['limits'])) {
|
||||
LSerror :: addErrorCode('LSformRule_01',array('type' => 'rangelength', 'param' => 'limit'));
|
||||
LSerror :: addErrorCode('LSformRule_01',array('type' => 'rangelength', 'param' => 'limits'));
|
||||
return;
|
||||
}
|
||||
$len=strlen($value);
|
||||
|
|
Loading…
Reference in a new issue