Fix regression
This commit is contained in:
parent
e94e5e044c
commit
a3257e0e40
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue