인자 정리 및 last_update는 쿼리의 기본값을 사용

This commit is contained in:
BJRambo 2017-03-07 07:56:28 +09:00
parent 8438578dc6
commit f2c17bf310
2 changed files with 4 additions and 2 deletions

View file

@ -473,7 +473,7 @@ class commentAdminController extends comment
if($oComment) if($oComment)
{ {
$output = $oCommentController->updateCommentByRestore($originObject, true); $output = $oCommentController->updateCommentByRestore($originObject);
} }
else else
{ {

View file

@ -980,7 +980,7 @@ class commentController extends comment
return $output; return $output;
} }
function updateCommentByRestore($obj, $is_admin = FALSE) function updateCommentByRestore($obj)
{ {
if (!$obj->comment_srl) if (!$obj->comment_srl)
{ {
@ -993,6 +993,8 @@ class commentController extends comment
$obj->status = RX_STATUS_PUBLIC; $obj->status = RX_STATUS_PUBLIC;
$obj->member_srl = 0; $obj->member_srl = 0;
// use to query default
unset($obj->last_update);
$output = executeQuery('comment.updateCommentByDelete', $obj); $output = executeQuery('comment.updateCommentByDelete', $obj);
if(!$output->toBool()) if(!$output->toBool())
{ {