// Remove bad _SQL_USE_SLAVE_ uses + normalize Db->executeS(), Db->execute() and Db->numRows() names

This commit is contained in:
rMalie
2011-10-10 12:18:56 +00:00
parent 149c814a45
commit 9510337b1d
280 changed files with 1971 additions and 1966 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ class StockMvtCore extends ObjectModel
) = 0
GROUP BY s.id_product, s.id_shop
HAVING qty <> 0';
$products_without_attributes = Db::getInstance()->ExecuteS($sql);
$products_without_attributes = Db::getInstance()->executeS($sql);
// Search missing stock movement on products with attributes
$sql = 'SELECT s.id_stock, (stock.quantity - SUM(IFNULL(sm.quantity, 0))) AS qty
@@ -114,7 +114,7 @@ class StockMvtCore extends ObjectModel
) > 0
GROUP BY s.id_product_attribute
HAVING qty <> 0';
$products_with_attributes = Db::getInstance()->ExecuteS($sql);
$products_with_attributes = Db::getInstance()->executeS($sql);
// Add missing stock movements
$products = array_merge($products_without_attributes, $products_with_attributes);