Fixed Preordernotiviation sending

This commit is contained in:
Frank Schubert
2023-04-20 12:05:50 +02:00
parent be5f445c94
commit 846b6ef77e
2 changed files with 3 additions and 2 deletions

View File

@@ -162,14 +162,14 @@ class PreordernotificationModel {
if(array_key_exists("send_finish", $filter)) {
$send_finish = $db->escape($filter['send_finish']);
if($send_finish === null) {
$where .= " AND Preordernotification.send_finish = NULL";
$where .= " AND Preordernotification.send_finish IS NULL";
}
}
if(array_key_exists("send_lock", $filter)) {
$send_lock = $db->escape($filter['send_lock']);
if($send_lock === null) {
$where .= " AND Preordernotification.send_lock = NULL";
$where .= " AND Preordernotification.send_lock IS NULL";
}
}

View File

@@ -4,6 +4,7 @@ class PreordernotificationLogModel {
public $preordernotification_id;
public $preorder_id;
public $email;
public $sent;
public $create_by = null;
public $edit_by = null;
public $create = null;