Selaa lähdekoodia

fixed dbg for send notify action in Cron

Piotr Labudda 10 vuotta sitten
vanhempi
commit
1a5b63aa8e
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      SE/se-lib/Route/Cron.php

+ 2 - 2
SE/se-lib/Route/Cron.php

@@ -111,19 +111,19 @@ class Route_Cron extends RouteBase {
 <div class="container">
 	<h1>Cron</h1>
 	<?php DBG::_('DBG_CRON', '>0', 'todoReminders', $todoReminders, __CLASS__, __FUNCTION__, __LINE__); ?>
-</div>
 		<?php
 
 		foreach ($todoReminders as $who => $listWhen) {
 			foreach ($listWhen as $when => $listWhat) {
 				if (!empty($listWhat)) {
 					$reminders = array_keys($listWhat);
+					echo "<p>Sending to {$who} reminders [" . implode(",", $reminders) . "]</p>" . "\n";
 					$notify->send($who, $reminders, $forceMail = 'plabudda@biall-net.pl');
 					$notify->markAsSent($who, $reminders);
 				}
 			}
 		}
-
+echo "\n" . '</div>';// .container
 		echo "\n.EOF\n";
 	}