1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-08 07:06:52 +02:00

code smoothing

This commit is contained in:
David Grudl
2009-11-16 01:51:49 +01:00
parent 4b2a329127
commit 5e7774404b
3 changed files with 12 additions and 10 deletions

View File

@@ -62,7 +62,7 @@ class DibiRow extends ArrayObject
} elseif (class_exists('DateTime', FALSE)) { // since PHP 5.2
$time = new DateTime($time);
return $time ? $time->format($format) : NULL;
return $time->format($format);
} else {
return date($format, strtotime($time));