Skip to content

Commit

Permalink
ACP2E-3127: imagecreatetruecolor(): Argument #2 () must be greater th…
Browse files Browse the repository at this point in the history
…an 0. Can't upload specific image
  • Loading branch information
Chhandak.Barua authored and Chhandak.Barua committed Aug 3, 2024
1 parent 18dddc7 commit 79b8895
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ protected function _checkDimensions($frameWidth, $frameHeight)
{
if ($frameWidth !== null && $frameWidth <= 0 ||
$frameHeight !== null && $frameHeight <= 0 ||
($frameWidth === '' && $frameHeight === '')
($frameWidth === null && $frameHeight === null)
) {
//phpcs:ignore Magento2.Exceptions.DirectThrow
throw new \InvalidArgumentException('Invalid image dimensions.');
Expand Down

0 comments on commit 79b8895

Please sign in to comment.