Changeset 5319

Show
Ignore:
Timestamp:
12/19/08 21:00:29 (7 months ago)
Author:
jwage
Message:

[1.0, 1.1] Fixing strict standards notice that happens in certain cases

Location:
branches
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Validator/Timestamp.php

    r5315 r5319  
    4545        } 
    4646 
    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; 
    4850 
    4951        $dateValidator = Doctrine_Validator::getValidator('date'); 
  • branches/1.1/lib/Doctrine/Validator/Timestamp.php

    r5315 r5319  
    4545        } 
    4646 
    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; 
    4850 
    4951        $dateValidator = Doctrine_Validator::getValidator('date');