From 79fce310aea9308f3c7c79578e8aa838f0c17782 Mon Sep 17 00:00:00 2001 From: vChabot Date: Wed, 21 Dec 2011 10:08:21 +0000 Subject: [PATCH] // little fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11458 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminProductsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 987d471e0..6c000df86 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -2102,7 +2102,7 @@ class AdminProductsControllerCore extends AdminController $this->_errors[] = 'Unable to load object'; else { - if (!Shop::isProductAvailable($this->object->id)) + if ($this->object->id && !Shop::isProductAvailable($this->object->id)) $this->_displayUnavailableProductWarning(); $this->_displayDraftWarning($this->object->active); $this->{'initForm'.$this->tab_display}($this->object, $languages, $default_language);