diff --git a/app/code/core/Mage/Sales/Model/Resource/Quote.php b/app/code/core/Mage/Sales/Model/Resource/Quote.php index 7c55f54b039e..dd67c70de869 100644 --- a/app/code/core/Mage/Sales/Model/Resource/Quote.php +++ b/app/code/core/Mage/Sales/Model/Resource/Quote.php @@ -156,13 +156,14 @@ public function getReservedOrderId($quote) /** * Check is order increment id use in sales/order table * - * @param string $orderIncrementId + * @param string|integer $orderIncrementId + * * @return boolean */ public function isOrderIncrementIdUsed($orderIncrementId) { $adapter = $this->_getReadAdapter(); - $bind = array(':increment_id' => $orderIncrementId); + $bind = array(':increment_id' => (string)$orderIncrementId); $select = $adapter->select(); $select->from($this->getTable('sales/order'), 'entity_id') ->where('increment_id = :increment_id');