LSformRule_rangelength : fixed php syntax bug

This commit is contained in:
Benjamin Renard 2010-04-16 14:52:21 +02:00
parent 9382ed946a
commit 5a3b3198a2

View file

@ -40,7 +40,7 @@ class LSformRule_rangelength extends LSformRule {
*/ */
function validate ($value,$options=array(),$formElement) { function validate ($value,$options=array(),$formElement) {
if(!isset($options['params']['limits'])) { if(!isset($options['params']['limits'])) {
LSerror :: addErrorCode('LSformRule_01',array('type' => 'rangelength', 'param' => 'limit'); LSerror :: addErrorCode('LSformRule_01',array('type' => 'rangelength', 'param' => 'limit'));
return; return;
} }
$len=strlen($value); $len=strlen($value);