Skip to content

Commit

Permalink
Use older array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsch authored Oct 10, 2016
1 parent 7804594 commit 6244f7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getProductsStock($stock, $productIds, $lockRows = false)
// so using a separate query here significantly reduces the number of
// unnecessarily locked rows in other tables, thereby avoiding deadlocks.
$select = $this->_getWriteAdapter()->select()
->from($productTable, ['entity_id', 'type_id'])
->from($productTable, array('entity_id', 'type_id'))
->where('entity_id IN(?)', $productIds);
$typeIds = $this->_getWriteAdapter()->fetchPairs($select);
foreach ($rows as &$row) {
Expand Down

0 comments on commit 6244f7b

Please sign in to comment.