Ops:
- wrong way around (!empty($foo)) is proper - also needed to be checked on $acitivty['content']
This commit is contained in:
parent
b1e4c0931a
commit
b200874f17
|
@ -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']));
|
||||
|
|
Loading…
Reference in New Issue
Block a user