From 1136dfedea3cff1b6338c68e748872bc82ab48da Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 4 Sep 2012 12:18:30 +0200 Subject: [PATCH] LSformRule::rangelength : fixed incorrect error message when limits paremeter isn't defined. --- public_html/includes/class/class.LSformRule_rangelength.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSformRule_rangelength.php b/public_html/includes/class/class.LSformRule_rangelength.php index 1e4b4c75..0ec59956 100644 --- a/public_html/includes/class/class.LSformRule_rangelength.php +++ b/public_html/includes/class/class.LSformRule_rangelength.php @@ -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);