mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Fix possibly undefined variables
This commit is contained in:
parent
f8c782380f
commit
49c9b6f9ff
5 changed files with 30 additions and 23 deletions
|
@ -274,6 +274,7 @@ class Term
|
|||
'network' => $item['author-network'], 'url' => $item['author-link']];
|
||||
$tag['url'] = Contact::magicLinkByContact($author, $tag['url']);
|
||||
|
||||
$prefix = '';
|
||||
if ($tag['type'] == TERM_HASHTAG) {
|
||||
if ($orig_tag != $tag['url']) {
|
||||
$item['body'] = str_replace($orig_tag, $tag['url'], $item['body']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue