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