mirror of
https://github.com/opencultureconsulting/simple-oai-pmh.git
synced 2025-03-30 00:00:45 +01:00
Fix #11
This commit is contained in:
parent
7e431406f7
commit
08b77a4821
@ -289,7 +289,7 @@ class Server {
|
||||
if ($datetime === false) {
|
||||
$datetime = \DateTime::createFromFormat('Y-m-d', $date);
|
||||
}
|
||||
return ($datetime !== false) && !array_sum($datetime->getLastErrors());
|
||||
return ($datetime !== false) && ($datetime->getLastErrors() !== false);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user