diff options
Diffstat (limited to 'cli/i18n/I18nData.php')
| -rw-r--r-- | cli/i18n/I18nData.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/i18n/I18nData.php b/cli/i18n/I18nData.php index 7e17c6c3c..2e5e373f8 100644 --- a/cli/i18n/I18nData.php +++ b/cli/i18n/I18nData.php @@ -130,7 +130,7 @@ class I18nData { if (array_key_exists($language, $this->data)) { throw new Exception('The selected language already exist.'); } - if (!is_string($reference) && !array_key_exists($reference, $this->data)) { + if (!is_string($reference) || !array_key_exists($reference, $this->data)) { $reference = static::REFERENCE_LANGUAGE; } $this->data[$language] = $this->data[$reference]; |
