DTux
/
dtux__moha
Archived
1
0
Fork 0

correction de bug

This commit is contained in:
Daniel Tartavel 2022-09-01 17:05:35 +02:00
parent 373bb6c228
commit 39a3b19bbf
1 changed files with 1 additions and 2 deletions

View File

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