From a8872ae804cfe4d34433b4e3ebaf600d796148d7 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sun, 21 Jan 2024 14:18:55 -0500 Subject: [PATCH] Bulk Mail: Don't show contacts that have no email address --- client_bulk_mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_bulk_mail.php b/client_bulk_mail.php index 850a7e49..068d0cd9 100644 --- a/client_bulk_mail.php +++ b/client_bulk_mail.php @@ -4,6 +4,7 @@ require_once "inc_all_client.php"; $sql = mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_client_id = $client_id AND contact_archived_at IS NULL + AND contact_email != '' ORDER BY contact_primary DESC, contact_important DESC" ); @@ -79,7 +80,6 @@ $sql = mysqli_query($mysqli, "SELECT * FROM contacts $contact_important = intval($row['contact_important']); $contact_billing = intval($row['contact_billing']); $contact_technical = intval($row['contact_technical']); - $contact_created_at = nullable_htmlentities($row['contact_created_at']); ?>