diff options
author | Mario <mario@mariovavti.com> | 2025-06-23 20:06:07 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-06-23 20:06:07 +0000 |
commit | 2047e9bca7f70a7418a7938dea66a35588df861a (patch) | |
tree | c4310192a8536ad70c32e69dff008dc3f3217092 | |
parent | aeb54655a01a60c2478518ff813d89447746baea (diff) | |
download | volse-hubzilla-2047e9bca7f70a7418a7938dea66a35588df861a.tar.gz volse-hubzilla-2047e9bca7f70a7418a7938dea66a35588df861a.tar.bz2 volse-hubzilla-2047e9bca7f70a7418a7938dea66a35588df861a.zip |
fix php warning
-rw-r--r-- | Zotlabs/Lib/MessageFilter.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/MessageFilter.php b/Zotlabs/Lib/MessageFilter.php index fa3d61244..3f2db88c3 100644 --- a/Zotlabs/Lib/MessageFilter.php +++ b/Zotlabs/Lib/MessageFilter.php @@ -8,8 +8,8 @@ class MessageFilter { public static function evaluate($item, $incl, $excl) { - $text = prepare_text($item['body'],((isset($item['mimetype'])) ? $item['mimetype'] : 'text/bbcode')); - $text = html2plain(($item['title']) ? $item['title'] . ' ' . $text : $text); + $text = prepare_text($item['body'], ((isset($item['mimetype'])) ? $item['mimetype'] : 'text/bbcode')); + $text = html2plain((!empty($item['title'])) ? $item['title'] . ' ' . $text : $text); $lang = null; if ((strpos($incl, 'lang=') !== false) || (strpos($excl, 'lang=') !== false) || (strpos($incl, 'lang!=') !== false) || (strpos($excl, 'lang!=') !== false)) { |