From ba9c01b82c742bd20a3b609c743940e3a7523fc1 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Sat, 3 Jan 2015 03:13:12 +0300 Subject: [PATCH] Prevent use of undefined values on display of chat invitation --- .../classes/Mibew/Controller/Chat/AbstractController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mibew/libs/classes/Mibew/Controller/Chat/AbstractController.php b/src/mibew/libs/classes/Mibew/Controller/Chat/AbstractController.php index f5e8e1fa..4176ba3e 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Chat/AbstractController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Chat/AbstractController.php @@ -105,9 +105,9 @@ abstract class AbstractController extends BaseAbstractController 'mibewBasePath' => $request->getBasePath(), 'mibewBaseUrl' => $request->getBaseUrl(), 'stylePath' => $request->getBasePath() . '/' . $this->getStyle()->getFilesPath(), - 'company' => $options['company'], - 'mibewHost' => $options['mibewHost'], - 'title' => $options['page.title'], + 'company' => isset($options['company']) ? $options['company'] : '', + 'mibewHost' => isset($options['mibewHost']) ? $options['mibewHost'] : '', + 'title' => isset($options['page.title']) ? $options['page.title'] : '', ), 'startFrom' => $options['startFrom'], );