cvs: pear /Validate/Validate FR.php
| From: | Ken Guest | Date: | Wed, 12 Sep 2007 23:02:33 +0000 |
| Subject: | cvs: pear /Validate/Validate FR.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-48601@lists.php.net to get a copy of this message | ||
kguest Wed Sep 12 23:02:33 2007 UTC
Modified files:
/pear/Validate/Validate FR.php
Log:
Bug #12042 Region tests are failing. region test is returning text values rather than the expect
0/1 values.
http://cvs.php.net/viewvc.cgi/pear/Validate/Validate/FR.php?r1=1.31&r2=1.32&diff_format=u
Index: pear/Validate/Validate/FR.php
diff -u pear/Validate/Validate/FR.php:1.31 pear/Validate/Validate/FR.php:1.32
--- pear/Validate/Validate/FR.php:1.31 Sat Aug 4 00:05:02 2007
+++ pear/Validate/Validate/FR.php Wed Sep 12 23:02:32 2007
@@ -19,7 +19,7 @@
* @author Bertrand Gugger <bertrand@toggg.com>
* @copyright 1997-2005 Pierre-Alain Joye, Bertrand Gugger
* @license http://www.opensource.org/licenses/bsd-license.php
new BSD
- * @version CVS: $Id: FR.php,v 1.31 2007/08/04 00:05:02 kguest Exp $
+ * @version CVS: $Id: FR.php,v 1.32 2007/09/12 23:02:32 kguest Exp $
* @link http://pear.php.net/package/Validate_FR
*/
@@ -291,7 +291,7 @@
'17' => 'Charente-Maritime',
'18' => 'Cher',
'19' => 'Corrèze',
- '20' => 'Corse', // deprecated
+ //'20' => 'Corse', // deprecated
'21' => 'Côte-d\'Or',
'22' => 'Côtes d\'Armor',
'23' => 'Creuse',
@@ -398,6 +398,11 @@
*/
function region($region)
{
- return ($return = Validate_FR::nameDepartement($region)) ? $return : false;
+ //return ($return = Validate_FR::nameDepartement($region)) ? $return : false;
+ if (Validate_FR::nameDepartement($region) !== '') {
+ return true;
+ } else {
+ return false;
+ }
}
}