Fix possibly undefined variables

This commit is contained in:
Hypolite Petovan 2019-01-21 16:53:03 -05:00
parent f8c782380f
commit 49c9b6f9ff
5 changed files with 30 additions and 23 deletions

View file

@ -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']);