diff --git a/utils.php b/utils.php index 1538ca0..d5b346d 100644 --- a/utils.php +++ b/utils.php @@ -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; }