This commit is contained in:
Sebastian Meyer 2023-07-13 20:30:35 +02:00
parent 7e431406f7
commit 08b77a4821
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ class Server {
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($datetime->getLastErrors()); return ($datetime !== false) && ($datetime->getLastErrors() !== false);
} }
} }