diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index 004d859f..3d010185 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -380,7 +380,7 @@ class ICrmOrderActions // we dont need new orders without any customers (can check only for externalId) if(!isset($order['customer']['externalId']) && !$order['customer']['externalId']) { if (!$order['customer']['email']) { - $login = 'user_' . (microtime(true) * 100); + $login = 'user_' . (microtime(true) * 1000) . mt_rand(1, 1000); $server_name = 0 < strlen(SITE_SERVER_NAME)? SITE_SERVER_NAME : 'server.com'; $order['customer']['email'] = $login . '@' . $server_name; @@ -395,7 +395,7 @@ class ICrmOrderActions $arUser = $dbUser->Fetch(); $registeredUserID = $arUser['ID']; } else { - $login = 'user_' . (microtime(true) * 100); + $login = 'user_' . (microtime(true) * 1000) . mt_rand(1, 1000); $registerNewUser = true; } } diff --git a/intaro.intarocrm/install/index.php b/intaro.intarocrm/install/index.php index 2163f70f..9c7388b8 100755 --- a/intaro.intarocrm/install/index.php +++ b/intaro.intarocrm/install/index.php @@ -383,6 +383,8 @@ class intaro_intarocrm extends CModule { ''; foreach ($orderStatusGroup['statuses'] as $payment) { + if(!isset($arResult['paymentList'][$payment])) continue; + if ($paymentStatusesArr[$bitrixPaymentStatus['ID']] == $arResult['paymentList'][$payment]['code']) { $input['payment-status-' . $bitrixPaymentStatus['ID']] .= ' - + + +