mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
인자 정리 및 last_update는 쿼리의 기본값을 사용
This commit is contained in:
parent
8438578dc6
commit
f2c17bf310
2 changed files with 4 additions and 2 deletions
|
|
@ -473,7 +473,7 @@ class commentAdminController extends comment
|
|||
|
||||
if($oComment)
|
||||
{
|
||||
$output = $oCommentController->updateCommentByRestore($originObject, true);
|
||||
$output = $oCommentController->updateCommentByRestore($originObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -980,7 +980,7 @@ class commentController extends comment
|
|||
return $output;
|
||||
}
|
||||
|
||||
function updateCommentByRestore($obj, $is_admin = FALSE)
|
||||
function updateCommentByRestore($obj)
|
||||
{
|
||||
if (!$obj->comment_srl)
|
||||
{
|
||||
|
|
@ -993,6 +993,8 @@ class commentController extends comment
|
|||
|
||||
$obj->status = RX_STATUS_PUBLIC;
|
||||
$obj->member_srl = 0;
|
||||
// use to query default
|
||||
unset($obj->last_update);
|
||||
$output = executeQuery('comment.updateCommentByDelete', $obj);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue