correction de bug
This commit is contained in:
parent
373bb6c228
commit
39a3b19bbf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user