tweaked filters in send-maintenance-notifications.php
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user