SAAS-57: Add LiveChat to Airtime Pro

Didn't consider the case of client_id being an empty string,
thus making the javascript syntax invalid
This commit is contained in:
Yuchen Wang 2011-12-09 12:37:31 -05:00
parent 343cd8274d
commit e583511b21
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
if (Application_Model_Preference::GetPlanLevel() != "disabled"
&& $_SERVER['REQUEST_URI'] != '/Dashboard/stream-player') {
$client_id = Application_Model_Preference::GetClientId();
$view->headScript()->appendScript("var livechat_client_id = $client_id;");
$view->headScript()->appendScript("var livechat_client_id = '$client_id';");
$view->headScript()->appendFile($baseUrl . '/js/airtime/common/livechat.js', 'text/javascript');
}
}