diff --git a/trunk/conf/config.error_code.php b/trunk/conf/config.error_code.php index 89de02eb..0de0185c 100644 --- a/trunk/conf/config.error_code.php +++ b/trunk/conf/config.error_code.php @@ -235,7 +235,7 @@ $GLOBALS['LSerror_code'] = array ( 'level' => 'c' ), - 301 => array( + 801 => array( 'msg' => _("LSformRule : Aucune regex n'a été fournis pour la validation des données."), 'level' => 'w' ), diff --git a/trunk/includes/class/class.LSformRule_regex.php b/trunk/includes/class/class.LSformRule_regex.php index f117630b..5d8833e4 100644 --- a/trunk/includes/class/class.LSformRule_regex.php +++ b/trunk/includes/class/class.LSformRule_regex.php @@ -43,7 +43,7 @@ class LSformRule_regex extends LSformRule { $regex=$option['params']['regex']; } else { - $GLOBALS['LSerror'] -> addErrorCode(301); + $GLOBALS['LSerror'] -> addErrorCode(801); return; } }