Stop early if autotranslation cannot proceed after validation
This commit is contained in:
		| @@ -685,7 +685,9 @@ final class NodaTimeAutotranslater { | ||||
|      */ | ||||
|     public function translate(array $timeInfo):void { | ||||
|  | ||||
|         $translations = self::getTranslations($timeInfo); | ||||
|         if (empty($translations = self::getTranslations($timeInfo))) { | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         $this->_mysqli_noda->autocommit(false); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user