2.Versuch nur aktiven Spielern reminder mails zu schicken
This commit is contained in:
parent
a5ea7ef328
commit
d5dfd906e1
1 changed files with 6 additions and 3 deletions
|
|
@ -231,9 +231,12 @@ class RoundmailController extends Controller
|
|||
Log::info("Usercount: ".sizeof($users));
|
||||
$emailsOfUsersWithIncompleteTipps=array();
|
||||
foreach($users as $user) {
|
||||
if (User::hasMissingTipp($user->id) || User::hasMissingJoker($user->id)) {
|
||||
if ($user->gets_reminders) {
|
||||
array_push($emailsOfUsersWithIncompleteTipps, $user->email);
|
||||
// 2.Versuch nur aktiven Spielern reminder mails zu schicken
|
||||
if (User::is_season_paid($user->id)=="Ja") {
|
||||
if (User::hasMissingTipp($user->id) || User::hasMissingJoker($user->id)) {
|
||||
if ($user->gets_reminders) {
|
||||
array_push($emailsOfUsersWithIncompleteTipps, $user->email);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue