간편하게 수정
This commit is contained in:
howtoxe 2017-05-24 11:53:31 +09:00 committed by Kijin Sung
parent 2441809743
commit 8648dd5aa5

View file

@ -1125,8 +1125,6 @@ class fileController extends file
$oDB = &DB::getInstance();
$oDB->begin();
if($file_info->cover_image != 'Y') {
$args->cover_image = 'N';
$output = executeQuery('file.updateClearCoverImage', $args);
if(!$output->toBool())
@ -1135,6 +1133,8 @@ class fileController extends file
return $output;
}
if($file_info->cover_image != 'Y') {
$args->cover_image = 'Y';
$output = executeQuery('file.updateCoverImage', $args);
if(!$output->toBool())
@ -1143,16 +1143,6 @@ class fileController extends file
return $output;
}
}else{
$args->cover_image = 'N';
$output = executeQuery('file.updateClearCoverImage', $args);
if(!$output->toBool())
{
$oDB->rollback();
return $output;
}
}
$oDB->commit();