From 317b580d8aab8405202d1fc0dbca8c451c786738 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Tue, 12 Nov 2013 15:22:35 +0400 Subject: [PATCH] comment lines for sites support --- intaro.intarocrm/install/index.php | 6 +++--- intaro.intarocrm/options.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/intaro.intarocrm/install/index.php b/intaro.intarocrm/install/index.php index 52442a9e..adf3e4c0 100755 --- a/intaro.intarocrm/install/index.php +++ b/intaro.intarocrm/install/index.php @@ -152,7 +152,7 @@ class intaro_intarocrm extends CModule { if (!CModule::IncludeModule("catalog")) { $arResult['errCode'] = 'ERR_CATALOG'; } - + $arResult['arSites'] = array(); $rsSites = CSite::GetList($by, $sort, array()); while ($ar = $rsSites->Fetch()) @@ -435,9 +435,9 @@ class intaro_intarocrm extends CModule { // empty == select all $orderSites = array(); - foreach ($_POST[$this->CRM_ORDER_SITES] as $site) { + /* foreach ($_POST[$this->CRM_ORDER_SITES] as $site) { $orderSites[] = htmlspecialchars(trim($site)); - } + } */ // form correct url $api_host = parse_url($api_host); diff --git a/intaro.intarocrm/options.php b/intaro.intarocrm/options.php index aa6c59f9..35cdfabf 100755 --- a/intaro.intarocrm/options.php +++ b/intaro.intarocrm/options.php @@ -98,9 +98,9 @@ if (isset($_POST['Update']) && ($_POST['Update'] == 'Y')) { // if empty so select all? or exception --not obligatory $orderSites = array(); - foreach ($_POST[$CRM_ORDER_SITES] as $site) { + /*foreach ($_POST[$CRM_ORDER_SITES] as $site) { $orderSites[] = htmlspecialchars(trim($site)); - } + }*/ if($api_host && $api_key) { $api = new IntaroCrm\RestApi($api_host, $api_key);