mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix incorrect data type handling of thumbnail $height parameter
https://xetown.com/questions/1584581
This commit is contained in:
parent
98bbe02154
commit
eb56785d54
2 changed files with 2 additions and 2 deletions
|
|
@ -1082,7 +1082,7 @@ class documentItem extends BaseObject
|
|||
}
|
||||
|
||||
// If not specify its height, create a square
|
||||
if(!$height || (!ctype_digit($height) && $height !== 'auto'))
|
||||
if(!$height || (!is_int($height) && !ctype_digit(strval($height)) && $height !== 'auto'))
|
||||
{
|
||||
$height = $width;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue