if (CVoteChannel::GetGroupPermission($arChannel["ID"]) >= 1)
{...}
else
{
$arQuestions = Array();
$arChannel = Array();
$arVote = Array();
$arGroupAnswers = Array();
$strError .= GetMessage("VOTE_ACCESS_DENIED");
}
$arResult = Array(
"CHANNEL" => $arChannel,
"VOTE" => $arVote,
"QUESTIONS" => $arQuestions,
"GROUP_ANSWERS" => $arGroupAnswers,
"CURRENT_PAGE" => htmlspecialchars($APPLICATION->GetCurPageParam("", array("VOTE_ID","VOTING_OK","VOTE_SUCCESSFULL"))),
"ERROR_MESSAGE" => $strError,
"OK_MESSAGE" => $strNote,
); |