Skip to content

Commit

Permalink
Fix condition checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kandy committed Jul 31, 2020
1 parent 503f0bd commit 912cfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/DB/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function where($cond, $value = null, $type = null)
{
if ($value === null && $type === null) {
$value = '';
} elseif ($type == self::TYPE_CONDITION) {
} elseif ((string)$type === self::TYPE_CONDITION) {
$type = null;
}
if (is_array($value)) {
Expand Down

0 comments on commit 912cfd8

Please sign in to comment.