diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php index aff19c9f80d1..2f0e3207f352 100644 --- a/CRM/Core/I18n.php +++ b/CRM/Core/I18n.php @@ -193,7 +193,7 @@ public static function languages($justEnabled = FALSE) { if (preg_match('/^[a-z][a-z]_[A-Z][A-Z]$/', $filename)) { $codes[] = $filename; if (!isset($all[$filename])) { - $all[$filename] = $labels[$filename]; + $all[$filename] = $labels[$filename] ?? "($filename)"; } } }