mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
1af0b19db0
commit
c09c1050e4
@ -77,8 +77,11 @@ class NewsletterEmailProcess extends BatchProcess {
|
||||
function complete() {
|
||||
parent::complete();
|
||||
|
||||
if( $this->newsletter->SentDate )
|
||||
if( $this->newsletter->SentDate ) {
|
||||
$resent = true;
|
||||
} else {
|
||||
$resent = false;
|
||||
}
|
||||
|
||||
$this->newsletter->SentDate = 'now';
|
||||
$this->newsletter->Status = 'Send';
|
||||
|
Loading…
Reference in New Issue
Block a user