mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +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
|
|
@ -698,7 +698,7 @@ class commentItem extends BaseObject
|
||||||
}
|
}
|
||||||
|
|
||||||
// If signiture height setting is omitted, create a square
|
// If signiture height setting is omitted, create a square
|
||||||
if(!$height || (!ctype_digit($height) && $height !== 'auto'))
|
if(!$height || (!is_int($height) && !ctype_digit(strval($height)) && $height !== 'auto'))
|
||||||
{
|
{
|
||||||
$height = $width;
|
$height = $width;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1082,7 +1082,7 @@ class documentItem extends BaseObject
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not specify its height, create a square
|
// 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;
|
$height = $width;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue