Bulk Mail: Don't show contacts that have no email address

This commit is contained in:
johnnyq 2024-01-21 14:18:55 -05:00
parent 413645154d
commit a8872ae804
1 changed files with 1 additions and 1 deletions

View File

@ -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']);
?>
<tr>
<td>