From 36aad94b6a3fdd503dc8a65fb189354fae7ce84d Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Tue, 15 Jan 2013 18:09:37 +0100 Subject: [PATCH] // Fixed potential warning --- classes/Customer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Customer.php b/classes/Customer.php index b05a0e042..ef3ab32df 100644 --- a/classes/Customer.php +++ b/classes/Customer.php @@ -233,7 +233,7 @@ class CustomerCore extends ObjectModel if ($this->newsletter && !Validate::isDate($this->newsletter_date_add)) $this->newsletter_date_add = date('Y-m-d H:i:s'); - if (Context::getContext()->controller->controller_type == 'admin') + if (isset(Context::getContext()->controller) && Context::getContext()->controller->controller_type == 'admin') $this->updateGroup($this->groupBox); if ($this->deleted)