mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 07:06:52 +02:00
code smoothing
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user