From 8c4c83380c849f9732e2112ea1faaf05e19d6b7b Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 20 Jan 2014 17:25:16 -0600 Subject: [PATCH] oops: Add message body if no attachments included --- include/class.thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.thread.php b/include/class.thread.php index b2379b2e7..c5c1707cd 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -869,7 +869,7 @@ Class ThreadEntry { .' ,poster='.db_input($poster) .' ,source='.db_input($vars['source']); - if (!isset($vars['attachments'])) + if (!isset($vars['attachments']) || !$vars['attachments']) // Otherwise, body will be configured in a block below (after // inline attachments are saved and updated in the database) $sql.=' ,body='.db_input($vars['body']); -- GitLab