Update AdminCustomerThreadsController.php
$contact->name can be an array throwing a warning Warning: preg_match() expects parameter 2 to be string when answering to a customer
This commit is contained in:
@@ -404,7 +404,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
||||
$contact = new Contact((int)$ct->id_contact);
|
||||
if (Validate::isLoadedObject($contact))
|
||||
{
|
||||
$from_name = $contact->name;
|
||||
$from_name = $contact->name[(int)$ct->id_lang];
|
||||
$from_email = $contact->email;
|
||||
}
|
||||
else
|
||||
@@ -805,4 +805,4 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
||||
die('{"hasError" : false, "errors" : ["'.$str_errors.$str_error_delete.'"]}');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user