Skip to content

Commit 4230790

Browse files
Merge pull request #145 from neo4j-php/stefanak-michal-patch-1
Update Bolt.php
2 parents d2e25fa + 3ede42f commit 4230790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bolt.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function track(): void
6262
$curl = curl_init();
6363
curl_setopt_array($curl, [
6464
CURLOPT_URL => 'https://api-eu.mixpanel.com/import?strict=0&project_id=3355308',
65-
CURLOPT_RETURNTRANSFER => false,
65+
CURLOPT_RETURNTRANSFER => true,
6666
CURLOPT_ENCODING => '',
6767
CURLOPT_MAXREDIRS => 10,
6868
CURLOPT_TIMEOUT => $this->connection->getTimeout(),
@@ -96,7 +96,7 @@ private function track(): void
9696
],
9797
]);
9898

99-
if (curl_exec($curl)) {
99+
if (curl_exec($curl) !== false) {
100100
unlink($file);
101101
}
102102
curl_close($curl);

0 commit comments

Comments
 (0)