LSformRule::rangelength : fixed incorrect error message when limits paremeter isn't defined.

This commit is contained in:
Benjamin Renard 2012-09-04 12:18:30 +02:00
parent 03c543f842
commit 1136dfedea

View file

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