cvs: pear /Validate Validate.php
| From: | Tomas V.V.Cox | Date: | Thu, 06 Jun 2002 15:18:03 +0000 |
| Subject: | cvs: pear /Validate Validate.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4455@lists.php.net to get a copy of this message | ||
cox Thu Jun 6 11:18:03 2002 EDT
Modified files:
/pear/Validate Validate.php
Log:
typo
# I forgot to mention that the method has not yet test file
# so it hasn't been tested extensively
Index: pear/Validate/Validate.php
diff -u pear/Validate/Validate.php:1.13 pear/Validate/Validate.php:1.14
--- pear/Validate/Validate.php:1.13 Thu Jun 6 11:05:01 2002
+++ pear/Validate/Validate.php Thu Jun 6 11:18:03 2002
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Validate.php,v 1.13 2002/06/06 15:05:01 cox Exp $
+// $Id: Validate.php,v 1.14 2002/06/06 15:18:03 cox Exp $
//
// Methods for common data validations
//
@@ -209,7 +209,7 @@
if ($next == 'm') {
$month = (int)Validate::_substr($date, 2);
} else {
- $month = (int)Validate::_substr($date, 1, 2); break;
+ $month = (int)Validate::_substr($date, 1, 2);
}
if ($month < 1 || $month > 12) {
return false;
@@ -218,7 +218,7 @@
case 'Y':
case 'y':
if ($next == 'Y') {
- $year = (int)Validate::_substr($date, 4); break;
+ $year = (int)Validate::_substr($date, 4);
} else {
$year = (int)(substr(date('Y'), 2) .
Validate::_substr($date, 2));