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