diff --git a/KlaviyoV3Sdk/KlaviyoV3Api.php b/KlaviyoV3Sdk/KlaviyoV3Api.php index 66591a7..00d1d86 100644 --- a/KlaviyoV3Sdk/KlaviyoV3Api.php +++ b/KlaviyoV3Sdk/KlaviyoV3Api.php @@ -359,7 +359,7 @@ protected function requestV3($path, $method = null, $body = null, $attempt = 0) $statusCode = curl_getinfo($curl, $phpVersionHttpCode); // In the event that the curl_exec fails for whatever reason, it responds with `false`, // Implementing a timeout and retry mechanism which will attempt the API call 3 times at 5 second intervals - if ($statusCode < 200 || $statusCode >= 300 || $response == false) { + if ($statusCode < 200 || $statusCode >= 300 || $response === false) { if ($attempt < 3) { sleep(1); $this->requestV3($path, $method, $body, $attempt + 1);