Also apply #2192 fix to document and comment modules; defend null

This commit is contained in:
Kijin Sung 2023-10-03 14:32:15 +09:00
parent ce3f5e98d2
commit 433103bf92
3 changed files with 7 additions and 10 deletions

View file

@ -336,7 +336,7 @@ class MemberModel extends Member
$menus = Context::get('member_popup_menu_list') ?: [];
foreach ($menus as $menu)
{
$menu->str = lang($menu->str);
$menu->str = lang($menu->str ?? '');
}
// Get a list of finalized pop-up menu
$this->add('menus', $menus);