mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
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:
parent
d187088c98
commit
a3d1ad0c19
1 changed files with 10 additions and 6 deletions
|
|
@ -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++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue