Skip to content
Snippets Groups Projects
Commit 9b9c4cc6 authored by Peter Rotich's avatar Peter Rotich
Browse files

Store empty tag when thread body is empty

parent 6a62b927
Branches
Tags
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment