Fix regression

This commit is contained in:
Sebastian Meyer 2017-10-15 18:09:01 +02:00
parent e94e5e044c
commit a3257e0e40
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class OAI2Server {
if ($datetime === false) { if ($datetime === false) {
$datetime = DateTime::createFromFormat('Y-m-d', $date); $datetime = DateTime::createFromFormat('Y-m-d', $date);
} }
return ($datetime !== false) && !array_sum($dt->getLastErrors()); return ($datetime !== false) && !array_sum($datetime->getLastErrors());
} }
} }