1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-13 09:34:30 +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

@@ -638,7 +638,7 @@ class DibiResult extends DibiObject implements IDataSource
} elseif (class_exists('DateTime', FALSE)) { // since PHP 5.2
$value = new DateTime($value);
return $value ? $value->format($format) : NULL;
return $value->format($format);
} else {
return date($format, strtotime($value));