From c097a1cb4a745879f08a421fd06f38e65c062a6e Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Mon, 18 Jun 2012 13:02:24 +0000 Subject: [PATCH] // upgrade display error optimization --- install-dev/upgrade/php/migrate_orders.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install-dev/upgrade/php/migrate_orders.php b/install-dev/upgrade/php/migrate_orders.php index baf07c56d..7685b75a6 100644 --- a/install-dev/upgrade/php/migrate_orders.php +++ b/install-dev/upgrade/php/migrate_orders.php @@ -39,10 +39,7 @@ 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; - } + return array('error' => 1, 'msg' => 'unable to get fields list from order_detail table'; $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 ';