mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
비회원일 경우 추천 취소가 되지 않는 문제 고침
This commit is contained in:
parent
ff9c21d04f
commit
0ce1c60a6c
1 changed files with 11 additions and 8 deletions
|
|
@ -482,18 +482,22 @@ class documentItem extends BaseObject
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
if(!$logged_info->member_srl)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if(isset($_SESSION['voted_document'][$this->document_srl]))
|
||||
{
|
||||
return $_SESSION['voted_document'][$this->document_srl];
|
||||
}
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
if(!$logged_info->member_srl)
|
||||
{
|
||||
$module_info = getModel('module')->getModuleInfoByModuleSrl($this->get('module_srl'));
|
||||
if($module_info->non_login_vote !== 'Y')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$args = new stdClass;
|
||||
if($logged_info->member_srl)
|
||||
{
|
||||
|
|
@ -509,7 +513,6 @@ class documentItem extends BaseObject
|
|||
{
|
||||
return $_SESSION['voted_document'][$this->document_srl] = $output->data->point;
|
||||
}
|
||||
|
||||
return $_SESSION['voted_document'][$this->document_srl] = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue