mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #1784 error when getThumbnail() uses external image with $height = 'auto'
This commit is contained in:
parent
74bb65a240
commit
ce2d019aaf
2 changed files with 2 additions and 2 deletions
|
|
@ -816,7 +816,7 @@ class commentItem extends BaseObject
|
|||
if($is_img = @getimagesize($tmp_file))
|
||||
{
|
||||
list($_w, $_h, $_t, $_a) = $is_img;
|
||||
if($_w < ($width * 0.3) && $_h < ($height * 0.3))
|
||||
if($_w < ($width * 0.3) && ($height === 'auto' || $_h < ($height * 0.3)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1225,7 +1225,7 @@ class documentItem extends BaseObject
|
|||
if($is_img = @getimagesize($tmp_file))
|
||||
{
|
||||
list($_w, $_h, $_t, $_a) = $is_img;
|
||||
if($_w < ($width * 0.3) && $_h < ($height * 0.3))
|
||||
if($_w < ($width * 0.3) && ($height === 'auto' || $_h < ($height * 0.3)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue