From 213e779c315ee66a46714d0c87a30ddab9b18ec7 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 7 Oct 2008 15:06:40 +0000 Subject: [PATCH] - LSform_regex : Correction de la duplication du code d'erreur 301 --- trunk/conf/config.error_code.php | 2 +- trunk/includes/class/class.LSformRule_regex.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } }