Add missing check in NodaTimeAutotranslater
This commit is contained in:
parent
7ccdfd4659
commit
668477f199
|
@ -754,7 +754,7 @@ final class NodaTimeAutotranslater {
|
||||||
*/
|
*/
|
||||||
public static function getTranslations(array $timeInfo):array {
|
public static function getTranslations(array $timeInfo):array {
|
||||||
|
|
||||||
if (!empty($timespanDates = NodaTimeSplitter::attempt_splitting_from_till((string)$timeInfo['zeit_name']))) {
|
if (!empty($timeInfo['zeit_name']) and strlen((string)$timeInfo['zeit_name']) > 10 and !empty($timespanDates = NodaTimeSplitter::attempt_splitting_from_till((string)$timeInfo['zeit_name']))) {
|
||||||
|
|
||||||
$output = [];
|
$output = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user