diff --git a/README.md b/README.md index 760bb54b..c49f316a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Bitrix module ============= -Bitrix module for interaction with IntaroCRM throguh REST API. +Bitrix module for interaction with IntaroCRM through REST API. Module allows: diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index d5414a34..b7e18a4c 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -91,7 +91,7 @@ class ICrmOrderActions while ($arOrder = $dbOrder->GetNext()) { if ($arOrder['ID'] <= $lastUpOrderId) //old orders not to upload - return true; + break; if(!$lastUpOrderIdNew) $lastUpOrderIdNew = $arOrder['ID'];