Skip to content

Commit

Permalink
Merge pull request #145 from neo4j-php/stefanak-michal-patch-1
Browse files Browse the repository at this point in the history
Update Bolt.php
  • Loading branch information
stefanak-michal authored Sep 20, 2024
2 parents d2e25fa + 3ede42f commit 4230790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bolt.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -96,7 +96,7 @@ private function track(): void
],
]);

if (curl_exec($curl)) {
if (curl_exec($curl) !== false) {
unlink($file);
}
curl_close($curl);
Expand Down

1 comment on commit 4230790

@stefanak-michal
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.