diff --git a/src/Bolt.php b/src/Bolt.php index eafe3d7..64a9689 100644 --- a/src/Bolt.php +++ b/src/Bolt.php @@ -62,7 +62,7 @@ private function track(): void $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => 'https://api-eu.mixpanel.com/import?strict=0&project_id=3355308', - CURLOPT_RETURNTRANSFER => false, + CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => $this->connection->getTimeout(), @@ -96,7 +96,7 @@ private function track(): void ], ]); - if (curl_exec($curl)) { + if (curl_exec($curl) !== false) { unlink($file); } curl_close($curl);