diff --git a/common/framework/parsers/moduleactionparser.php b/common/framework/parsers/moduleactionparser.php index b504b4a00..b8e74a806 100644 --- a/common/framework/parsers/moduleactionparser.php +++ b/common/framework/parsers/moduleactionparser.php @@ -37,7 +37,7 @@ class ModuleActionParser } // Get the current language. - $lang = \Context::getLangType(); + $lang = \Context::getLangType() ?: 'en'; // Initialize the module definition. $info = new \stdClass; diff --git a/common/framework/parsers/moduleinfoparser.php b/common/framework/parsers/moduleinfoparser.php index 688dfbe15..76daf3af4 100644 --- a/common/framework/parsers/moduleinfoparser.php +++ b/common/framework/parsers/moduleinfoparser.php @@ -23,7 +23,7 @@ class ModuleInfoParser } // Get the current language. - $lang = \Context::getLangType(); + $lang = \Context::getLangType() ?: 'en'; // Initialize the module definition. $info = new \stdClass;