diff --git a/main/cron/import_csv.php b/main/cron/import_csv.php index 56e116e6e7..12f7eb7c29 100755 --- a/main/cron/import_csv.php +++ b/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(