변수 중복 수정

This commit is contained in:
sunmikr 2017-05-15 18:28:07 +09:00 committed by Kijin Sung
parent 6b326b8da6
commit 47ebe210e0

View file

@ -1067,7 +1067,7 @@ class documentItem extends Object
if($source_file) if($source_file)
{ {
$output = FileHandler::createImageFile($source_file, $thumbnail_file, $width, $height, 'jpg', $thumbnail_type); $output_file = FileHandler::createImageFile($source_file, $thumbnail_file, $width, $height, 'jpg', $thumbnail_type);
} }
// Remove source file if it was temporary // Remove source file if it was temporary
@ -1080,7 +1080,7 @@ class documentItem extends Object
FileHandler::removeFile($thumbnail_lockfile); FileHandler::removeFile($thumbnail_lockfile);
// Return the thumbnail path if it was successfully generated // Return the thumbnail path if it was successfully generated
if($output) if($output_file)
{ {
return $thumbnail_url . '?' . date('YmdHis'); return $thumbnail_url . '?' . date('YmdHis');
} }