Skip to content
Snippets Groups Projects
Commit d3ecb730 authored by Soliman Harkas's avatar Soliman Harkas
Browse files

Issue #3321942 Fix warning when static language is not existing

parent 70b9d3cd
Branches
Tags
1 merge request!7Issue #3321942 Fix warning when static language is not existing
......@@ -43,7 +43,7 @@ class StringPluralFormula implements StringPluralFormulaInterface {
public function getDefaultPluralFormula($lang_code) {
$default = 'n==1 ? 0 : 1';
$static_lang_rules = $this->getStaticLanguageRules();
return $static_lang_rules[$lang_code] ?: $default;
return isset($static_lang_rules[$lang_code]) ? $static_lang_rules[$lang_code] : $default;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment