Changeset 1330
- Timestamp:
- 05/09/06 16:34:45 (4 years ago)
- Files:
-
- trunk/lib/i18n/sfI18N.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/i18n/sfI18N.class.php
r745 r1330 175 175 176 176 // We find all elements 177 preg_match("~$dateRegexp~", $date, $matches); 178 179 // We get matching timestamp 180 return array($matches[$datePositions['d']], $matches[$datePositions['m']], $matches[$datePositions['y']]); 177 if (preg_match("~$dateRegexp~", $date, $matches)) 178 { 179 // We get matching timestamp 180 return array($matches[$datePositions['d']], $matches[$datePositions['m']], $matches[$datePositions['y']]); 181 } 182 else 183 { 184 return null; 185 } 181 186 } 182 187 }

