fixed error : check the member that don't have group

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10122 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-02-15 08:52:59 +00:00
parent a3d1ad0c19
commit 9a45b0e9f1

View file

@ -643,21 +643,21 @@
if(count($member_group) > 0 && is_array($member_group)) if(count($member_group) > 0 && is_array($member_group))
{ {
$memberGroups = array_keys($member_group); $memberGroups = array_keys($member_group);
}
foreach($groups_info as $group_srl=>$group_info) foreach($groups_info as $group_srl=>$group_info)
{
if(in_array($group_srl, $memberGroups))
{ {
if($group_info->image_mark) if(in_array($group_srl, $memberGroups))
{ {
$info->title = $group_info->title; if($group_info->image_mark)
$info->description = $group_info->description; {
$info->src = $group_info->image_mark; $info->title = $group_info->title;
$GLOBALS['__member_info__']['group_image_mark'][$member_srl] = $info; $info->description = $group_info->description;
break; $info->src = $group_info->image_mark;
} $GLOBALS['__member_info__']['group_image_mark'][$member_srl] = $info;
} break;
}
}
}
} }
if (!$info) $GLOBALS['__member_info__']['group_image_mark'][$member_srl] == 'N'; if (!$info) $GLOBALS['__member_info__']['group_image_mark'][$member_srl] == 'N';
} }