From 02bbfb25d667bdf2b3f4adc696ec067f07c31750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 15 Jan 2013 18:53:01 +0100 Subject: [PATCH] [-] FO: Fix Pack::getItemTable with some PHP versions --- classes/Pack.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Pack.php b/classes/Pack.php index c06b9c003..204dcad09 100644 --- a/classes/Pack.php +++ b/classes/Pack.php @@ -142,8 +142,8 @@ class PackCore extends Product AND a.`id_product_pack` = '.(int)$id_product; $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql); - foreach ($result as &$row) - $row = Product::getTaxesInformations($row); + foreach ($result as &$line) + $line = Product::getTaxesInformations($line); if (!$full) return $result;