From 29e91f73e258922dcb49435dc7dd5af0c0577098 Mon Sep 17 00:00:00 2001 From: Tomasz Gregorczyk Date: Tue, 9 Jan 2024 16:57:10 +0100 Subject: [PATCH] Cast store config image opacity to int (#3727) --- app/code/core/Mage/Catalog/Helper/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Catalog/Helper/Image.php b/app/code/core/Mage/Catalog/Helper/Image.php index 47040931f42..0b473555b55 100644 --- a/app/code/core/Mage/Catalog/Helper/Image.php +++ b/app/code/core/Mage/Catalog/Helper/Image.php @@ -143,7 +143,7 @@ public function init(Mage_Catalog_Model_Product $product, $attributeName, $image Mage::getStoreConfig("design/watermark/{$this->_getModel()->getDestinationSubdir()}_image") ); $this->setWatermarkImageOpacity( - Mage::getStoreConfig("design/watermark/{$this->_getModel()->getDestinationSubdir()}_imageOpacity") + (int) Mage::getStoreConfig("design/watermark/{$this->_getModel()->getDestinationSubdir()}_imageOpacity") ); $this->setWatermarkPosition( Mage::getStoreConfig("design/watermark/{$this->_getModel()->getDestinationSubdir()}_position")