diff --git a/controllers/admin/AdminCustomerThreadsController.php b/controllers/admin/AdminCustomerThreadsController.php index 0916fb3eb..dddc015d9 100644 --- a/controllers/admin/AdminCustomerThreadsController.php +++ b/controllers/admin/AdminCustomerThreadsController.php @@ -864,8 +864,15 @@ class AdminCustomerThreadsControllerCore extends AdminController $content = ''; if (!$message['private']) { - if ($message['id_employee']) { - $content .= $this->l('Message to: ').' '.($message['customer_name']).'

'; + $customerName = false; + if (!$message['id_customer']) { + $customerName = $message['user_name']; + } else if ($message['customer_name']) { + $customerName = $message['customer_name']; + } + + if ($message['id_employee'] && $customerName) { + $content .= $this->l('Message to: ').' '.($customerName).'

'; } } else { $content .= ''.$this->l('Private').'

';