This commit is contained in:
Joshua Ramon Enslin 2020-09-26 10:23:37 +02:00 committed by Stefan Rohde-Enslin
parent 1cfbfe7743
commit 7a1dcbb14f

View File

@ -470,8 +470,8 @@ final class NodaTimeSplitter {
$datum = self::clean_input($datum);
// 0000-0000
if (preg_match("/^[0-9][0-9][0-9][0-9](\-|\/)[0-9][0-9][0-9][0-9]$/", $datum) !== false
|| preg_match("/^[0-9][0-9][0-9][0-9](\-|\/)[0-9][0-9][0-9][0-9]\.$/", $datum) !== false
if (!empty(preg_match("/^[0-9][0-9][0-9][0-9](\-|\/)[0-9][0-9][0-9][0-9]$/", $datum))
|| !empty(preg_match("/^[0-9][0-9][0-9][0-9](\-|\/)[0-9][0-9][0-9][0-9]\.$/", $datum))
) {
$start = substr($datum, 0, 4);
$end = substr($datum, 5, 4);