Fixed \XF\Image\Manager::canResize has a bugged check

Xon

Well-known member
Affected version
2.3.7
PHP:
public function canResize($width, $height)
{
    if (!$this->maxResizePixels === null)
    {
        return true;
    }
I'm fairly sure this check is broken, as there is no value you can store into maxResizePixels that makes that branch return true.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.8).

Change log:
Fix inverted logic in canResize method check
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom