remotes/angel/1.11.x
jmontoyaa 8 years ago
parent c95382f06e
commit 28b5db5bdf
  1. 12
      main/cron/import_csv.php

@ -884,10 +884,6 @@ class ImportCsv
return 0;
}
$this->logger->addInfo(
"Ready to insert events"
);
$agenda = new Agenda('course');
$extraFieldValue = new ExtraFieldValue('calendar_event');
@ -907,6 +903,10 @@ class ImportCsv
return 0;
}
$this->logger->addInfo(
"Ready to insert events"
);
$batchSize = $this->batchSize;
$counter = 1;
$em = Database::getManager();
@ -995,6 +995,10 @@ class ImportCsv
$notificationSent = true;
}
$this->logger->addInfo(
"Send Mail conditions: ".(int) ($notificationSent && $sendMail)
);
// Send announcement to users
if ($sendMail == false && $notificationSent) {
$start = api_get_local_time(

Loading…
Cancel
Save