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

@ -442,7 +442,9 @@ class moduleAdminModel extends module
if(is_array($lang_supported))
{
foreach($lang_supported as $key => $val)
$output[$key] = $selected_lang[$key]?$selected_lang[$key]:$name;
{
$output[$key] = (isset($selected_lang[$key]) && $selected_lang[$key]) ? $selected_lang[$key] : $name;
}
}
return $output;
}