From 0c534c11a760db498fbee92d5acbe5fe34c2da01 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Tue, 22 Jul 2014 16:30:06 +0400 Subject: [PATCH] more codintions to skip order --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index c7892830..7315e4df 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -505,7 +505,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(!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']) { $login = 'user_' . (microtime(true) * 10000) . mt_rand(1, 1000); $server_name = 0 < strlen(SITE_SERVER_NAME)?