묻고답하기

어제까지만 해도 잘 나왔는데

오늘 보니 추천 비추천은 되는 것 같은데

팝업창 메시지가 안나타납니다.

뭣때문에 그럴까요?

 

로그인은 하시겠습니까? 는 나옵니다

 

아랫부분에 이상한 것이 있나요?

document.controller.php 를 파일로도 첨부했습니다 봐주시기 바랍니다

 

if(!$trigger_output->toBool())
  {
   $oDB->rollback();
   return $trigger_output;
  }

  $oDB->commit();

  $oCacheHandler = CacheHandler::getInstance('object');
  if($oCacheHandler->isSupport())
  {
   //remove document item from cache
   $cache_key = 'document_item:'. getNumberingPath($document_srl) . $document_srl;
   $oCacheHandler->delete($cache_key);
  }

  // Leave in the session information
  $_SESSION['voted_document'][$document_srl] = true;

  // Return result
  $output = new Object();
  if($point > 0)
  {
   $output->setMessage('success_voted');
   $output->add('voted_count', $obj->after_point);
  }
  else
  {
   $output->setMessage('success_blamed');
   $output->add('blamed_count', $obj->after_point);
  }
  
  return $output;