- wrong way around (!empty($foo)) is proper
- also needed to be checked on $acitivty['content']
2022.09-rc
Roland Häder 2022-06-16 13:38:40 +02:00
rodzic b1e4c0931a
commit b200874f17
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: C82EDE5DDFA0BA77
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -616,8 +616,8 @@ class Processor
$content = $activity['content'];
} else {
// By default assume "text/html"
$item['title'] = (empty($activity['name']) ? HTML::toBBCode($activity['name']) : '');
$content = HTML::toBBCode($activity['content']);
$item['title'] = (!empty($activity['name']) ? HTML::toBBCode($activity['name']) : '');
$content = (!empty($activity['content']) ? HTML::toBBCode($activity['content']) : '');
}
$item['title'] = trim(BBCode::toPlaintext($item['title']));