// migrate_orders.php : the ultimate fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13802 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
91dd988381
commit
1624cce3b4
1 file changed
+2
@@ -99,6 +99,8 @@ function migrate_orders()
|
|||||||
foreach (array_keys($order_details) as $k)
|
foreach (array_keys($order_details) as $k)
|
||||||
if (!in_array($k, $col_order_detail))
|
if (!in_array($k, $col_order_detail))
|
||||||
unset($order_details[$k]);
|
unset($order_details[$k]);
|
||||||
|
else
|
||||||
|
$order_details[$k] = Db::getInstance()->escape($order_details[$k]);
|
||||||
$values_order_detail[] = '(\''.implode('\', \'', $order_details).'\')';
|
$values_order_detail[] = '(\''.implode('\', \'', $order_details).'\')';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user