From 815dbc6fc7b32632f8e28c58ecdcc53cd6dd4158 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 29 Sep 2011 13:54:54 +0000 Subject: [PATCH] //historyController : Refacto done --- controllers/front/HistoryController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controllers/front/HistoryController.php b/controllers/front/HistoryController.php index 9d536da95..1820d6130 100644 --- a/controllers/front/HistoryController.php +++ b/controllers/front/HistoryController.php @@ -43,10 +43,14 @@ class HistoryControllerCore extends FrontController _THEME_JS_DIR_.'tools.js')); } + /** + * Assign template vars related to page content + * @see FrontController::process() + */ public function process() { if ($orders = Order::getCustomerOrders($this->context->customer->id)) - foreach ($orders AS &$order) + foreach ($orders as &$order) { $myOrder = new Order((int)($order['id_order'])); if (Validate::isLoadedObject($myOrder))