Changeset 5319
- Timestamp:
- 12/19/08 21:00:29 (7 months ago)
- Location:
- branches
- Files:
-
- 2 modified
-
1.0/lib/Doctrine/Validator/Timestamp.php (modified) (1 diff)
-
1.1/lib/Doctrine/Validator/Timestamp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Validator/Timestamp.php
r5315 r5319 45 45 } 46 46 47 list($date, $time) = explode(' ', trim($value)); 47 $e = explode(' ', trim($value)); 48 $date = isset($e[0]) ? $e[0]:null; 49 $time = isset($e[1]) ? $e[1]:null; 48 50 49 51 $dateValidator = Doctrine_Validator::getValidator('date'); -
branches/1.1/lib/Doctrine/Validator/Timestamp.php
r5315 r5319 45 45 } 46 46 47 list($date, $time) = explode(' ', trim($value)); 47 $e = explode(' ', trim($value)); 48 $date = isset($e[0]) ? $e[0]:null; 49 $time = isset($e[1]) ? $e[1]:null; 48 50 49 51 $dateValidator = Doctrine_Validator::getValidator('date');