Update text.php (#4654)

This commit is contained in:
chansizzle 2019-09-24 16:40:50 -06:00 committed by FusionPBX
parent d24a4e8e82
commit 5d2099a80b
1 changed files with 1 additions and 1 deletions

View File

@ -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 {