Fix incorrect data type handling of thumbnail $height parameter

https://xetown.com/questions/1584581
This commit is contained in:
Kijin Sung 2021-06-22 16:24:28 +09:00
parent 98bbe02154
commit eb56785d54
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}