mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-12 15:02:15 +09:00
Various fixes to remove warnings in PHP 8.0
This commit is contained in:
parent
9a0bf6d907
commit
49923844b2
36 changed files with 271 additions and 176 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue