mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
수정
간편하게 수정
This commit is contained in:
parent
2441809743
commit
8648dd5aa5
1 changed files with 8 additions and 18 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue