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
This commit is contained in:
Ingo Schommer 2007-09-15 21:11:36 +00:00
parent 1af0b19db0
commit c09c1050e4

View File

@ -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';