diff --git a/app/contacts/contact_attachment.php b/app/contacts/contact_attachment.php index 6c707394d3..3701728cbf 100644 --- a/app/contacts/contact_attachment.php +++ b/app/contacts/contact_attachment.php @@ -42,9 +42,10 @@ $sql .= "where contact_attachment_uuid = :contact_attachment_uuid "; $sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) "; $parameters['contact_attachment_uuid'] = $contact_attachment_uuid; - $parameters['domain_uuid'] = $domain_uuid; + $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $database = new database; $attachment = $database->select($sql, $parameters ?? null, 'row'); + // view_array($database->message); unset($sql, $parameters); $attachment_type = strtolower(pathinfo($attachment['attachment_filename'] ?? '', PATHINFO_EXTENSION)); @@ -78,4 +79,4 @@ } -?> +?> \ No newline at end of file