From 912cfd8c1a4da5605168c8939c707d72df575326 Mon Sep 17 00:00:00 2001 From: Andrii Kasian Date: Thu, 30 Jul 2020 22:10:42 -0500 Subject: [PATCH] Fix condition checks --- lib/internal/Magento/Framework/DB/Select.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/DB/Select.php b/lib/internal/Magento/Framework/DB/Select.php index e28786568cc2c..1b0fc1a9ff7fa 100644 --- a/lib/internal/Magento/Framework/DB/Select.php +++ b/lib/internal/Magento/Framework/DB/Select.php @@ -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)) {