fix for response
This commit is contained in:
parent
51dd47a89f
commit
41ed8f4f33
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ if ( ! class_exists( 'WC_Retailcrm_Proxy' ) ) :
|
|||
WC_Retailcrm_Logger::add(sprintf("[%s] %s - %s", $called, $exception->getMessage(), $result));
|
||||
}
|
||||
|
||||
return !empty($response) ?: new WC_Retailcrm_Response(900, '{}');
|
||||
return !empty($response) ? $response : new WC_Retailcrm_Response(900, '{}');
|
||||
}
|
||||
}
|
||||
endif;
|
Loading…
Add table
Reference in a new issue