Skip to content

Commit 912cfd8

Browse files
committed
Fix condition checks
1 parent 503f0bd commit 912cfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/DB/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function where($cond, $value = null, $type = null)
115115
{
116116
if ($value === null && $type === null) {
117117
$value = '';
118-
} elseif ($type == self::TYPE_CONDITION) {
118+
} elseif ((string)$type === self::TYPE_CONDITION) {
119119
$type = null;
120120
}
121121
if (is_array($value)) {

0 commit comments

Comments
 (0)