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

@@ -407,10 +407,17 @@ class MaintenanceNotification extends mfBaseModel {
if(array_key_exists("to>", $filter)) {
$to = $filter['to>'];
if(is_numeric($to)) {
$where .= " AND MaintenanceNotification.to >= $to";
$where .= " AND MaintenanceNotification.to > $to";
}
}
if(array_key_exists("send_ts<", $filter)) {
$send_ts = $filter['send_ts<'];
if(is_numeric($send_ts)) {
$where .= " AND MaintenanceNotification.send_ts <= $send_ts";
}
}
if(array_key_exists("sent", $filter)) {
$sent = $filter['sent'];
if($sent === true) {