mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
댓글에 대해서도 추천, 비추천
This commit is contained in:
parent
c2b78f4468
commit
6f1066d3b9
9 changed files with 150 additions and 5 deletions
|
|
@ -162,6 +162,10 @@ class documentController extends document
|
|||
//session reset
|
||||
$_SESSION['voted_document'][$document_srl] = false;
|
||||
|
||||
// begin transaction
|
||||
$oDB = DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
$obj = new stdClass();
|
||||
$obj->member_srl = $oDocument->get('member_srl');
|
||||
$obj->module_srl = $oDocument->get('module_srl');
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ class documentItem extends Object
|
|||
|
||||
function getVoted()
|
||||
{
|
||||
if(!$this->document_srl) return;
|
||||
if(!$this->document_srl) return false;
|
||||
if($_SESSION['voted_document'][$this->document_srl])
|
||||
{
|
||||
return $_SESSION['voted_document'][$this->document_srl];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue