LSformRule_minlength : Fix php syntax bug.

This commit is contained in:
Benjamin Renard 2009-12-31 14:22:05 +01:00
parent 1a51d5b754
commit 046d6f8004

View file

@ -39,7 +39,7 @@ class LSformRule_minlength extends LSformRule {
*/
function validate ($value,$options,$formElement) {
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 (strlen($value)>=$options['params']['limit']);