From a3257e0e40ae59f1fd9a35f45c570086e58b94f3 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Sun, 15 Oct 2017 18:09:01 +0200 Subject: [PATCH] Fix regression --- oai2server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oai2server.php b/oai2server.php index 22f173f..ccea27e 100644 --- a/oai2server.php +++ b/oai2server.php @@ -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()); } }