mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 01:22:23 -04:00
Don't send admin email for returning Patrons
This commit is contained in:
parent
242f99f3b5
commit
ad4b5423db
1 changed files with 9 additions and 7 deletions
|
@ -91,6 +91,7 @@ class Patron{
|
|||
$em->TextBody = Template::EmailPatronsCircleWelcomeText(['isAnonymous' => $this->IsAnonymous, 'isReturning' => $isReturning]);
|
||||
$em->Send();
|
||||
|
||||
if(!$isReturning){
|
||||
$em = new Email();
|
||||
$em->To = ADMIN_EMAIL_ADDRESS;
|
||||
$em->From = ADMIN_EMAIL_ADDRESS;
|
||||
|
@ -100,6 +101,7 @@ class Patron{
|
|||
$em->Send();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function End(?int $ebooksThisYear): void{
|
||||
if($ebooksThisYear === null){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue