Update AdminCustomerThreadsController.php

If language is not defined returns an array instead of a string which makes function Mail::Send to throw a warning.
This commit is contained in:
joseantgv committed 2013-07-23 09:58:53 +02:00
1 parent 209615d4f4
commit 63b2f63058
1 file changed
+1 -1
@@ -401,7 +401,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
), ),
); );
//#ct == id_customer_thread #tc == token of thread <== used in the synchronization imap //#ct == id_customer_thread #tc == token of thread <== used in the synchronization imap
$contact = new Contact((int)$ct->id_contact); $contact = new Contact((int)$ct->id_contact, (int)$ct->id_lang);
if (Validate::isLoadedObject($contact)) if (Validate::isLoadedObject($contact))
{ {
$from_name = $contact->name[(int)$ct->id_lang]; $from_name = $contact->name[(int)$ct->id_lang];