이미지파일인지 체크하는 코드 추가

This commit is contained in:
chicpro
2013-02-19 17:43:32 +09:00
parent 44c990cf7b
commit 131568dbae

View File

@ -41,6 +41,9 @@ function get_board_contents($contents)
if(is_file($srcfile)) {
// 썸네일 높이
$size = @getimagesize($srcfile);
if(empty($size))
continue;
$thumb_height = round(($thumb_width * $size[1]) / $size[0]);
$filename = basename($srcfile);
$filepath = dirname($srcfile);