mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +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');
|
$module_config = $oModuleModel->getModulePartConfigs('point');
|
||||||
// A variable to store member's points
|
// A variable to store member's points
|
||||||
$member = array();
|
$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
|
// Get post information
|
||||||
$output = executeQueryArray('point.getDocumentPoint');
|
$output = executeQueryArray('point.getDocumentPoint');
|
||||||
if(!$output->toBool()) return $output;
|
if(!$output->toBool()) return $output;
|
||||||
|
|
@ -204,6 +216,7 @@
|
||||||
$member[$val->member_srl] += $point;
|
$member[$val->member_srl] += $point;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = null;
|
$output = null;
|
||||||
// Get comments information
|
// Get comments information
|
||||||
$output = executeQueryArray('point.getCommentPoint');
|
$output = executeQueryArray('point.getCommentPoint');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue