mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 970 modified point init problem
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10267 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5c91b684bd
commit
0f7d44dab1
1 changed files with 16 additions and 3 deletions
|
|
@ -190,6 +190,18 @@
|
|||
$module_config = $oModuleModel->getModulePartConfigs('point');
|
||||
// A variable to store member's points
|
||||
$member = array();
|
||||
|
||||
// Get member infomation
|
||||
$output = executeQueryArray('point.getMemberCount');
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
if($output->data) {
|
||||
foreach($output->data as $key => $val) {
|
||||
if(!$val->member_srl) continue;
|
||||
$member[$val->member_srl] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Get post information
|
||||
$output = executeQueryArray('point.getDocumentPoint');
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -202,9 +214,10 @@
|
|||
if(!$val->member_srl) continue;
|
||||
$point = $insert_point * $val->count;
|
||||
$member[$val->member_srl] += $point;
|
||||
}
|
||||
}
|
||||
$output = null;
|
||||
}
|
||||
}
|
||||
|
||||
$output = null;
|
||||
// Get comments information
|
||||
$output = executeQueryArray('point.getCommentPoint');
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue