aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2bbcode.php
diff options
context:
space:
mode:
authorAndrzej Budziński <andrzej@budzinski.ovh>2021-02-03 15:00:24 +0100
committerAndrzej Budziński <andrzej@budzinski.ovh>2021-02-03 15:00:24 +0100
commitba73845badef5c653c05c70ca27a5b37e2f25f97 (patch)
tree6b22545076df5f80b8714f07e92a518af24f0dc5 /include/html2bbcode.php
parent7ece28b9814e6bc7ea2879335520641561dc0ba5 (diff)
parent34b28cd8d36c7805e65c442ff1588ccf5165387a (diff)
downloadvolse-hubzilla-ba73845badef5c653c05c70ca27a5b37e2f25f97.tar.gz
volse-hubzilla-ba73845badef5c653c05c70ca27a5b37e2f25f97.tar.bz2
volse-hubzilla-ba73845badef5c653c05c70ca27a5b37e2f25f97.zip
Merge branch 'dev' into translation-pl
Diffstat (limited to 'include/html2bbcode.php')
-rw-r--r--include/html2bbcode.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index c916421b8..173ea63bd 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -87,6 +87,9 @@ function deletenode(&$doc, $node)
function html2bbcode($message)
{
+ if(!$message)
+ return;
+
$message = str_replace("\r", "", $message);
$message = str_replace(array(