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);
|
$contact = new Contact((int)$ct->id_contact);
|
||||||
if (Validate::isLoadedObject($contact))
|
if (Validate::isLoadedObject($contact))
|
||||||
{
|
{
|
||||||
$from_name = $contact->name;
|
$from_name = $contact->name[(int)$ct->id_lang];
|
||||||
$from_email = $contact->email;
|
$from_email = $contact->email;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user