Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit b923efc

Browse files
author
Guillermo Cespedes
committed
fix validateDate
1 parent f59c881 commit b923efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Particle/Core/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ final public static function filterSql($sql, $html = true, $default = false)
114114

115115
final public static function validateDate($date, $format = 'Y-m-d')
116116
{
117-
$d = DateTime::createFromFormat($format, $date);
117+
$d = \DateTime::createFromFormat($format, $date);
118118
return $d && $d->format($format) == $date;
119119
}
120120

0 commit comments

Comments
 (0)