From 63b2f630584eca87ac13a456bdaad2be168d78f9 Mon Sep 17 00:00:00 2001 From: joseantgv Date: Tue, 23 Jul 2013 09:58:53 +0200 Subject: [PATCH] Update AdminCustomerThreadsController.php If language is not defined returns an array instead of a string which makes function Mail::Send to throw a warning. --- controllers/admin/AdminCustomerThreadsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminCustomerThreadsController.php b/controllers/admin/AdminCustomerThreadsController.php index 57eff11a0..3714a0a17 100644 --- a/controllers/admin/AdminCustomerThreadsController.php +++ b/controllers/admin/AdminCustomerThreadsController.php @@ -401,7 +401,7 @@ class AdminCustomerThreadsControllerCore extends AdminController ), ); //#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)) { $from_name = $contact->name[(int)$ct->id_lang];