Add a list of vote user

This commit is contained in:
BJRambo 2017-01-07 17:10:55 +09:00
parent 2535dcec6b
commit 4c7ce6a380
5 changed files with 93 additions and 2 deletions

View file

@ -1289,8 +1289,14 @@ class documentController extends document
*/
function updateVotedCount($document_srl, $point = 1)
{
if($point > 0) $failed_voted = 'failed_voted';
else $failed_voted = 'failed_blamed';
if($point > 0)
{
$failed_voted = 'failed_voted';
}
else
{
$failed_voted = 'failed_blamed';
}
// Return fail if session already has information about votes
if($_SESSION['voted_document'][$document_srl])
{