From 8e506ddff20568c21e3d99c583a28bb7ad41d7da Mon Sep 17 00:00:00 2001 From: gRoussac Date: Wed, 23 Oct 2013 18:16:45 +0200 Subject: [PATCH] [-] BO : FIx bug #PSCFV-10736, could not load a product given from getBoughtProducts --- controllers/admin/AdminCustomersController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index ad841c3f2..ef2a9ac0e 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -630,6 +630,8 @@ class AdminCustomersControllerCore extends AdminController for ($i = 0; $i < $total_interested; $i++) { $product = new Product($interested[$i]['id_product'], false, $this->default_form_language, $interested[$i]['id_shop']); + if (!Validate::isLoadedObject($product)) + continue; $interested[$i]['url'] = $this->context->link->getProductLink( $product->id, $product->link_rewrite,