Stop early if autotranslation cannot proceed after validation

This commit is contained in:
Joshua Ramon Enslin 2025-04-05 00:11:03 +02:00
parent e8edb4a459
commit 423959ac94
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -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);