Fix filtering to admin bulk mail

This commit is contained in:
o-psi 2024-02-15 22:16:01 +00:00
parent 466fbc03ca
commit 671cdd9832
2 changed files with 4 additions and 4 deletions

View File

@ -5,6 +5,10 @@ require_once "inc_all_admin.php";
$sql = mysqli_query($mysqli, "SELECT * FROM contacts
WHERE contact_archived_at IS NULL
AND contact_email != ''
AND (contact_primary = 1 OR
contact_important = 1 OR
contact_billing = 1 OR
contact_technical = 1)
ORDER BY contact_primary DESC,
contact_important DESC"
);

View File

@ -5,10 +5,6 @@ $sql = mysqli_query($mysqli, "SELECT * FROM contacts
WHERE contact_client_id = $client_id
AND contact_archived_at IS NULL
AND contact_email != ''
AND (contact_primary = 1 OR
contact_important = 1 OR
contact_billing = 1 OR
contact_technical = 1)
ORDER BY contact_primary DESC,
contact_important DESC"
);