From 9b9c4cc62cdfb32cc25555ca52c683ac9f387845 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Fri, 31 Jan 2014 22:34:25 +0000 Subject: [PATCH] Store empty tag when thread body is empty --- include/class.thread.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/class.thread.php b/include/class.thread.php index f0f6b1c78..fec7c52c4 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -873,7 +873,9 @@ Class ThreadEntry { $vars['body'] = new TextThreadBody($vars['body']); } - $body = Format::sanitize((string) $vars['body']->convertTo('html')); + if (!($body = Format::sanitize( + (string) $vars['body']->convertTo('html')))) + $body = '-'; //Special tag used to signify empty message as stored. $poster = $vars['poster']; if ($poster && is_object($poster)) -- GitLab