이미지인지 아닌지 확실하게 구별하기 위한 방법 추가.

This commit is contained in:
BJRambo 2016-01-08 09:59:24 +09:00
parent 9c97f24d35
commit 0b1a511c38

View file

@ -910,7 +910,14 @@ class documentItem extends Object
if(!file_exists($tmp_file)) continue;
else
{
list($_w, $_h, $_t, $_a) = getimagesize($tmp_file);
if($is_img = @getimagesize($tmp_file))
{
list($_w, $_h, $_t, $_a) = $is_img;
}
else
{
continue;
}
$source_file = $tmp_file;
$is_tmp_file = true;