mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix incorrect variable handling if $group_list contains strings
This commit is contained in:
parent
86548a8d6a
commit
a1cd3224c4
1 changed files with 9 additions and 2 deletions
|
|
@ -656,9 +656,16 @@ class MemberModel extends Member
|
|||
}
|
||||
if(!$group_list) return array();
|
||||
|
||||
foreach($group_list as $group)
|
||||
foreach($group_list as $group_srl => $group)
|
||||
{
|
||||
$result[$group->group_srl] = $group->title;
|
||||
if (is_object($group))
|
||||
{
|
||||
$result[$group->group_srl] = $group->title;
|
||||
}
|
||||
else
|
||||
{
|
||||
$result[$group_srl] = $group;
|
||||
}
|
||||
}
|
||||
$GLOBALS['__member_groups__'][$member_srl] = $result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue