1
0
mirror of synced 2024-11-22 13:26:10 +03:00

more codintions to skip order

This commit is contained in:
Grisha Pomadchin 2014-07-22 16:30:06 +04:00
parent 74eb5f1d39
commit 0c534c11a7

View File

@ -505,7 +505,7 @@ class ICrmOrderActions
// we dont need new orders without any customers (can check only for externalId) // we dont need new orders without any customers (can check only for externalId)
if(!isset($order['customer']['externalId']) && !$order['customer']['externalId']) { if(!isset($order['customer']['externalId']) && !$order['customer']['externalId']) {
if(!isset($order['customer']['id'])) continue; // if no id then skip if(!isset($order['customer']['id']) || !$order['customer']['id']) continue; // if no id then skip
if (!$order['customer']['email']) { if (!$order['customer']['email']) {
$login = 'user_' . (microtime(true) * 10000) . mt_rand(1, 1000); $login = 'user_' . (microtime(true) * 10000) . mt_rand(1, 1000);
$server_name = 0 < strlen(SITE_SERVER_NAME)? $server_name = 0 < strlen(SITE_SERVER_NAME)?