Procházet zdrojové kódy

fixed dbg for send notify action in Cron

Piotr Labudda před 10 roky
rodič
revize
1a5b63aa8e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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">
 <div class="container">
 	<h1>Cron</h1>
 	<h1>Cron</h1>
 	<?php DBG::_('DBG_CRON', '>0', 'todoReminders', $todoReminders, __CLASS__, __FUNCTION__, __LINE__); ?>
 	<?php DBG::_('DBG_CRON', '>0', 'todoReminders', $todoReminders, __CLASS__, __FUNCTION__, __LINE__); ?>
-</div>
 		<?php
 		<?php
 
 
 		foreach ($todoReminders as $who => $listWhen) {
 		foreach ($todoReminders as $who => $listWhen) {
 			foreach ($listWhen as $when => $listWhat) {
 			foreach ($listWhen as $when => $listWhat) {
 				if (!empty($listWhat)) {
 				if (!empty($listWhat)) {
 					$reminders = array_keys($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->send($who, $reminders, $forceMail = 'plabudda@biall-net.pl');
 					$notify->markAsSent($who, $reminders);
 					$notify->markAsSent($who, $reminders);
 				}
 				}
 			}
 			}
 		}
 		}
-
+echo "\n" . '</div>';// .container
 		echo "\n.EOF\n";
 		echo "\n.EOF\n";
 	}
 	}