Skip to content

Commit 4173007

Browse files
Merge pull request #165 from stefanak-michal/stefanak-michal-patch-1
Don't send if nothing to send
2 parents 44d6f24 + 96bc252 commit 4173007

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Bolt.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ private function track(): void
7070
}
7171
}
7272

73+
if (empty($toSend)) {
74+
return;
75+
}
76+
7377
//curl
7478
$curl = curl_init();
7579
curl_setopt_array($curl, [

0 commit comments

Comments
 (0)