Fixed MaintenanceinfoApi

This commit is contained in:
Frank Schubert
2025-08-04 12:03:07 +02:00
parent 3718ceefdf
commit 6cc7080ee5
3 changed files with 8 additions and 3 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(["send_ts<" => date("U")]) as $notification) {
foreach(MaintenanceNotification::searchActiveOpen() as $notification) {
$notification->sendToRecipients();
}