이미지파일인지 체크하는 코드 추가
This commit is contained in:
@ -41,6 +41,9 @@ function get_board_contents($contents)
|
|||||||
if(is_file($srcfile)) {
|
if(is_file($srcfile)) {
|
||||||
// 썸네일 높이
|
// 썸네일 높이
|
||||||
$size = @getimagesize($srcfile);
|
$size = @getimagesize($srcfile);
|
||||||
|
if(empty($size))
|
||||||
|
continue;
|
||||||
|
|
||||||
$thumb_height = round(($thumb_width * $size[1]) / $size[0]);
|
$thumb_height = round(($thumb_width * $size[1]) / $size[0]);
|
||||||
$filename = basename($srcfile);
|
$filename = basename($srcfile);
|
||||||
$filepath = dirname($srcfile);
|
$filepath = dirname($srcfile);
|
||||||
|
|||||||
Reference in New Issue
Block a user