// Fixed potential warning
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user