Update text.php (#4654)
This commit is contained in:
parent
d24a4e8e82
commit
5d2099a80b
|
|
@ -103,7 +103,7 @@ class text {
|
|||
//reduce to specific language
|
||||
if ($language_code != 'all') {
|
||||
if (is_array($text)) foreach ($text as $key => $value) {
|
||||
if (strlen($value[$language_code]) > 0) {
|
||||
if (isset($value[$language_code]) && strlen($value[$language_code]) > 0) {
|
||||
$text[$key] = $value[$language_code];
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue