fixed error that default group not exist.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10121 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-02-14 10:02:46 +00:00
parent d187088c98
commit a3d1ad0c19

View file

@ -1681,12 +1681,16 @@
if(!$args->group_srl_list) {
$columnList = array('site_srl', 'group_srl');
$default_group = $oMemberModel->getDefaultGroup(0, $columnList);
// Add to the default group
$output = $this->addMemberToGroup($args->member_srl,$default_group->group_srl);
if(!$output->toBool()) {
$oDB->rollback();
return $output;
}
if ($default_group)
{
// Add to the default group
$output = $this->addMemberToGroup($args->member_srl,$default_group->group_srl);
if(!$output->toBool())
{
$oDB->rollback();
return $output;
}
}
// If the value is the value of the group entered the group registration
} else {
for($i=0;$i<count($group_srl_list);$i++) {