Skip to content

Instantly share code, notes, and snippets.

@mpchadwick
Created March 29, 2019 13:06
Show Gist options
  • Save mpchadwick/f6fe808a80d1764241bf86f43b372bb9 to your computer and use it in GitHub Desktop.
Save mpchadwick/f6fe808a80d1764241bf86f43b372bb9 to your computer and use it in GitHub Desktop.
diff --git a/lib/Varien/Db/Adapter/Pdo/Mysql.php b/lib/Varien/Db/Adapter/Pdo/Mysql.php
index f17f16f2d..d8c0373ec 100644
--- a/lib/Varien/Db/Adapter/Pdo/Mysql.php
+++ b/lib/Varien/Db/Adapter/Pdo/Mysql.php
@@ -2947,7 +2947,7 @@ public function prepareSqlCondition($fieldName, $condition)
if (isset($condition['to'])) {
$query .= empty($query) ? '' : ' AND ';
$to = $this->_prepareSqlDateCondition($condition, 'to');
- $query = $this->_prepareQuotedSqlCondition($query . $conditionKeyMap['to'], $to, $fieldName);
+ $query = $query . $this->_prepareQuotedSqlCondition($conditionKeyMap['to'], $to, $fieldName);
}
} elseif (array_key_exists($key, $conditionKeyMap)) {
$value = $condition[$key];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment