mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
문자열을 숫자로 변경
This commit is contained in:
parent
43a6caeb36
commit
31ea80a380
2 changed files with 5 additions and 5 deletions
|
|
@ -374,11 +374,11 @@ class documentItem extends Object
|
|||
if(!$this->document_srl) return;
|
||||
if($_SESSION['voted_document'][$this->document_srl] == '1')
|
||||
{
|
||||
return 'voted';
|
||||
return 1;
|
||||
}
|
||||
else if($_SESSION['voted_document'][$this->document_srl] == '-1')
|
||||
{
|
||||
return 'blamed';
|
||||
return -1;
|
||||
}
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
|
@ -390,11 +390,11 @@ class documentItem extends Object
|
|||
|
||||
if($output->data->point === '1')
|
||||
{
|
||||
return 'voted';
|
||||
return 1;
|
||||
}
|
||||
else if($output->data->point === '-1')
|
||||
{
|
||||
return 'blamed';
|
||||
return -1;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue