IsAuthorized()) { $params['customerId'] = $USER->GetID(); } $str = ""; $APPLICATION->AddHeadString($str, true); } else { return false; } } }