Skip to content

Commit

Permalink
Explicitly setting opens and clicks values to zero when creating the …
Browse files Browse the repository at this point in the history
…SentEmail object so that SQLite doesn't complain.
  • Loading branch information
Jon Baker committed Aug 9, 2016
1 parent bc1e1d1 commit 89620a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MailTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public function beforeSendPerformed(\Swift_Events_SendEvent $event)
'recipient'=>$headers->get('to')->getFieldBody(),
'subject'=>$headers->get('subject')->getFieldBody(),
'content'=>$original_content,
'opens'=>0,
'clicks'=>0,
]);

// Purge old records
Expand Down

0 comments on commit 89620a6

Please sign in to comment.