// Fixed potential warning

This commit is contained in:
Damien Metzger
2013-01-15 18:09:37 +01:00
parent 71bd641b55
commit 36aad94b6a
+1 -1
View File
@@ -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)