tweaked filters in send-maintenance-notifications.php

This commit is contained in:
Frank Schubert
2024-11-14 21:21:48 +01:00
parent 09507fc19a
commit bbde6d3bd1
3 changed files with 22 additions and 12 deletions

View File

@@ -16,6 +16,6 @@ define("INTERNAL_USER_ID", $me->id);
define("INTERNAL_USER_USERNAME", $me->username);
define("MFBASE_BYPASS_LOGIN", true);
foreach(MaintenanceNotification::searchActive([]) as $notification) {
foreach(MaintenanceNotification::searchActive(["send_ts<" => date("U")]) as $notification) {
$notification->sendToRecipients();
}