From 00ee8ad4efbe570378fb2b1ebb4279acfb0fc2bd Mon Sep 17 00:00:00 2001 From: misthero Date: Wed, 26 Jun 2013 10:32:54 +0200 Subject: [PATCH] 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 --- controllers/admin/AdminCustomerThreadsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminCustomerThreadsController.php b/controllers/admin/AdminCustomerThreadsController.php index 697d5dedb..57eff11a0 100644 --- a/controllers/admin/AdminCustomerThreadsController.php +++ b/controllers/admin/AdminCustomerThreadsController.php @@ -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.'"]}'); } } -} \ No newline at end of file +}