mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #1900 incorrect detection of non-member vote status
This commit is contained in:
parent
b91fb3ee7a
commit
031261469e
4 changed files with 14 additions and 1 deletions
|
|
@ -171,6 +171,7 @@ class commentController extends comment
|
|||
}
|
||||
else
|
||||
{
|
||||
$args->member_srl = 0;
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
}
|
||||
$output = executeQuery('comment.getCommentVotedLogInfo', $args);
|
||||
|
|
@ -1449,6 +1450,7 @@ class commentController extends comment
|
|||
}
|
||||
else
|
||||
{
|
||||
$args->member_srl = 0;
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
}
|
||||
$args->comment_srl = $comment_srl;
|
||||
|
|
|
|||
|
|
@ -372,7 +372,15 @@ class commentItem extends BaseObject
|
|||
if(!$logged_info->member_srl) return false;
|
||||
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
if($logged_info->member_srl)
|
||||
{
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->member_srl = 0;
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
}
|
||||
$args->comment_srl = $this->comment_srl;
|
||||
$output = executeQuery('comment.getCommentVotedLog', $args);
|
||||
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ class documentController extends document
|
|||
}
|
||||
else
|
||||
{
|
||||
$args->member_srl = 0;
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
}
|
||||
$output = executeQuery('document.getDocumentVotedLogInfo', $args);
|
||||
|
|
@ -1698,6 +1699,7 @@ class documentController extends document
|
|||
}
|
||||
else
|
||||
{
|
||||
$args->member_srl = 0;
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
}
|
||||
$args->document_srl = $document_srl;
|
||||
|
|
|
|||
|
|
@ -518,6 +518,7 @@ class documentItem extends BaseObject
|
|||
}
|
||||
else
|
||||
{
|
||||
$args->member_srl = 0;
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
}
|
||||
$args->document_srl = $this->document_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue