Исправлено сравнение true
This commit is contained in:
parent
3cc89dcc62
commit
dc9af7bb30
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ class RetailCrmOrder
|
|||
$crmBasket = RCrmActions::apiMethod($api, 'cartGet', __METHOD__, $externalId, $site);
|
||||
$orderResponse = $client->createOrder($order, $site);
|
||||
|
||||
if ($orderResponse instanceof OrdersCreateResponse && $orderResponse->success !== true) {
|
||||
if ($orderResponse instanceof OrdersCreateResponse && !$orderResponse->success) {
|
||||
|
||||
Logger::getInstance()->write([
|
||||
'methodApi' => 'orderCreate',
|
||||
|
|
Loading…
Add table
Reference in a new issue