Various fixes to remove warnings in PHP 8.0

This commit is contained in:
Kijin Sung 2020-12-15 00:18:42 +09:00
parent 9a0bf6d907
commit 49923844b2
36 changed files with 271 additions and 176 deletions

View file

@ -879,7 +879,7 @@ class moduleAdminController extends module
$lang_supported = Context::loadLangSelected();
$defaultLang = config('locale.default_lang');
if(!is_array($langMap[$defaultLang]))
if(!isset($langMap[$defaultLang]) || !is_array($langMap[$defaultLang]))
{
$langMap[$defaultLang] = array();
}
@ -899,7 +899,7 @@ class moduleAdminController extends module
continue;
}
if(!is_array($langMap[$targetLangCode]))
if(!isset($langMap[$targetLangCode]) || !is_array($langMap[$targetLangCode]))
{
$langMap[$targetLangCode] = array();
}