|
@@ -1409,6 +1409,10 @@ class ImportCsv
|
|
|
);
|
|
|
|
|
|
if ($announcementId) {
|
|
|
+ $senderId = $this->defaultAdminId;
|
|
|
+ if (!empty($coaches) && isset($coaches[0]) && !empty($coaches[0])) {
|
|
|
+ $senderId = $coaches[0];
|
|
|
+ }
|
|
|
$this->logger->addInfo("Announcement added: ".(int) ($announcementId)." in $info");
|
|
|
$this->logger->addInfo("<<--SENDING MAIL-->>");
|
|
|
$report['mail_sent']++;
|
|
@@ -1419,7 +1423,7 @@ class ImportCsv
|
|
|
false,
|
|
|
false,
|
|
|
$this->logger,
|
|
|
- $this->defaultAdminId
|
|
|
+ $senderId
|
|
|
);
|
|
|
} else {
|
|
|
$this->logger->addError(
|