mirror of
https://github.com/opencultureconsulting/simple-oai-pmh.git
synced 2025-03-09 00:00:20 +01:00
Fix regression
This commit is contained in:
parent
e94e5e044c
commit
a3257e0e40
@ -293,7 +293,7 @@ class OAI2Server {
|
||||
if ($datetime === false) {
|
||||
$datetime = DateTime::createFromFormat('Y-m-d', $date);
|
||||
}
|
||||
return ($datetime !== false) && !array_sum($dt->getLastErrors());
|
||||
return ($datetime !== false) && !array_sum($datetime->getLastErrors());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user