Skip to content

Commit

Permalink
Fixed strlen(): Passing null to parameter OpenMage#1 in SalesRule/Mod…
Browse files Browse the repository at this point in the history
…el/Resource/Rule/Collection.php
  • Loading branch information
kiatng committed Nov 23, 2023
1 parent 1151717 commit 4c22308
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function setValidationFilter($websiteId, $customerGroupId, $couponCode =
$select = $this->getSelect();

$connection = $this->getConnection();
if (strlen($couponCode)) {
if ($couponCode !== null && strlen($couponCode)) {
$select->joinLeft(
['rule_coupons' => $this->getTable('salesrule/coupon')],
$connection->quoteInto(
Expand Down

0 comments on commit 4c22308

Please sign in to comment.