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:
misthero
2013-06-26 10:32:54 +02:00
parent 64f615a061
commit 00ee8ad4ef

View File

@@ -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.'"]}');
}
}
}
}