Skip to content

Commit

Permalink
Do a weak check if language is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Jan 17, 2020
1 parent 77ca423 commit a0ea0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Multilingual.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getAlias($language, $aliasColumnName = 'alias')
$langColumn = static::getLangColumn();
$fallbackLang = static::getFallbackLanguage();

if ($language === $fallbackLang && $this->{$langColumn} === '') {
if ($language === $fallbackLang && !$this->{$langColumn}) {
return $this->{$aliasColumnName};
}

Expand Down

0 comments on commit a0ea0cc

Please sign in to comment.