Skip to content

Commit

Permalink
Fixed deprecation warning in Mage_SalesRule_Model_Rule (#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Apr 18, 2023
1 parent 3501e73 commit 4874e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/SalesRule/Model/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function _afterLoad()
*/
protected function _afterSave()
{
$couponCode = trim($this->getCouponCode());
$couponCode = trim((string)$this->getCouponCode());
if (strlen($couponCode)
&& $this->getCouponType() == self::COUPON_TYPE_SPECIFIC
&& !$this->getUseAutoGeneration()
Expand Down

0 comments on commit 4874e5c

Please sign in to comment.