1
0

correction de bug

This commit is contained in:
Daniel Tartavel 2022-09-01 17:05:35 +02:00
parent 373bb6c228
commit 39a3b19bbf

View File

@ -25,7 +25,6 @@ function checkTopicsAvailability()
if ($topic->status == 1) if ($topic->status == 1)
{ {
logger(DEBUG, "time is " . time() . " lastSeen is " . $topic->lastSeen, __FILE__ . ":" . __LINE__ ); logger(DEBUG, "time is " . time() . " lastSeen is " . $topic->lastSeen, __FILE__ . ":" . __LINE__ );
if ((time() - $topic->lastSeen > $topic->timeOut*60) and ($topic->notificationSent == false)) if ((time() - $topic->lastSeen > $topic->timeOut*60) and ($topic->notificationSent == false))
{ {
if (logger(ALERT, $topicName . _(" is not available"), __FILE__ . ":" . __LINE__) == false); if (logger(ALERT, $topicName . _(" is not available"), __FILE__ . ":" . __LINE__) == false);
@ -135,7 +134,7 @@ function validateDate($date, $format = 'Y-m-d')
function now() function now()
{ {
$now = new datetime(); $now = new datetime("now");
return $now; return $now;
} }