From 65bf9956e20fb74aff9367a6de32911a856cfe30 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Mon, 18 Jun 2012 11:29:12 +0000 Subject: [PATCH] =?UTF-8?q?//=20fix=20fatal=20error=20on=20installer=20whe?= =?UTF-8?q?n=20show=20columns=20error=20in=20migrate=5Forders,=20thanks=20?= =?UTF-8?q?to=20R=C3=A9mi=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-dev/upgrade/php/migrate_orders.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-dev/upgrade/php/migrate_orders.php b/install-dev/upgrade/php/migrate_orders.php index a75eb01fd..baf07c56d 100644 --- a/install-dev/upgrade/php/migrate_orders.php +++ b/install-dev/upgrade/php/migrate_orders.php @@ -39,7 +39,10 @@ function migrate_orders() $values_order_detail = array(); $col_order_detail = Db::getInstance()->query('SHOW FIELDS FROM `'._DB_PREFIX_.'order_detail`'); if (!$col_order_detail) + { $array_errors[] = 'unable to get fields list from order_detail table'; + return false; + } $col_order_detail = $col_order_detail->fetchAll(PDO::FETCH_COLUMN); $insert_order_detail = 'INSERT INTO `'._DB_PREFIX_.'order_detail_2` (`'.implode('`, `', $col_order_detail).'`) VALUES ';