Skip to content

Commit a38a596

Browse files
authored
Update TranslationBehavior.php
1 parent 28c227a commit a38a596

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/behaviors/TranslationBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class TranslationBehavior extends Behavior
8787
public function init()
8888
{
8989
parent::init();
90-
if (!array_key_exists($this->defaultLanguage, $this->languages)) {
90+
if (!in_array($this->defaultLanguage, $this->languages)) {
9191
throw new InvalidConfigException('Default language must be exist');
9292
}
9393
}

0 commit comments

Comments
 (0)