if ($fileID > 0) $arFields['FILES'][] = $fileID; } }*/ if ($arParams['COPY']) { $arResult['MEETING']['OWNER_ID'] = $USER->GetID(); $arFields['PARENT_ID'] = $_REQUEST['PARENT_ID']; $MEETING_ID = 0; } if (isset($_REQUEST['PROTOCOL_TEXT'])) { $arFields['PROTOCOL_TEXT'] = trim($_REQUEST['PROTOCOL_TEXT']); } if ($MEETING_ID > 0) { $res = CMeeting::Update($MEETING_ID, $arFields); } else { $MEETING_ID = CMeeting::Add($arFields); $res = $MEETING_ID > 0; $bNew = true; } } elseif (isset($_REQUEST['PROTOCOL_TEXT'])) { $arFields = array('PROTOCOL_TEXT' => trim($_REQUEST['PROTOCOL_TEXT'])); CMeeting::Update($MEETING_ID, $arFields); } if ($res) { $arEventParams = null; $arUsers = $_REQUEST['USERS']; if (!is_array($arUsers)) { $arUsers = array(); } $arKeepers = $_REQUEST['KEEPERS']; if (!is_array($arKeepers)) {