From c09c1050e48c3d5f43112ddceabc4c10cdb4e55a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 21:11:36 +0000 Subject: [PATCH] elofgren: VAR FIX: Prevent undefined variable 'resent' in NewsletterEmailProcess::complete() (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41944 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/Newsletter/NewsletterEmailProcess.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/Newsletter/NewsletterEmailProcess.php b/code/Newsletter/NewsletterEmailProcess.php index 7991e38c..8c086c13 100755 --- a/code/Newsletter/NewsletterEmailProcess.php +++ b/code/Newsletter/NewsletterEmailProcess.php @@ -77,8 +77,11 @@ class NewsletterEmailProcess extends BatchProcess { function complete() { parent::complete(); - if( $this->newsletter->SentDate ) - $resent = true; + if( $this->newsletter->SentDate ) { + $resent = true; + } else { + $resent = false; + } $this->newsletter->SentDate = 'now'; $this->newsletter->Status = 'Send';