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));
|
Log::info("Usercount: ".sizeof($users));
|
||||||
$emailsOfUsersWithIncompleteTipps=array();
|
$emailsOfUsersWithIncompleteTipps=array();
|
||||||
foreach($users as $user) {
|
foreach($users as $user) {
|
||||||
if (User::hasMissingTipp($user->id) || User::hasMissingJoker($user->id)) {
|
// 2.Versuch nur aktiven Spielern reminder mails zu schicken
|
||||||
if ($user->gets_reminders) {
|
if (User::is_season_paid($user->id)=="Ja") {
|
||||||
array_push($emailsOfUsersWithIncompleteTipps, $user->email);
|
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