mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
이미지인지 아닌지 확실하게 구별하기 위한 방법 추가.
This commit is contained in:
parent
9c97f24d35
commit
0b1a511c38
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue