aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-06-23 20:06:07 +0000
committerMario <mario@mariovavti.com>2025-06-23 20:06:07 +0000
commit2047e9bca7f70a7418a7938dea66a35588df861a (patch)
treec4310192a8536ad70c32e69dff008dc3f3217092
parentaeb54655a01a60c2478518ff813d89447746baea (diff)
downloadvolse-hubzilla-2047e9bca7f70a7418a7938dea66a35588df861a.tar.gz
volse-hubzilla-2047e9bca7f70a7418a7938dea66a35588df861a.tar.bz2
volse-hubzilla-2047e9bca7f70a7418a7938dea66a35588df861a.zip
fix php warning
-rw-r--r--Zotlabs/Lib/MessageFilter.php4
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)) {