php strpos() empty needle warning when a term entry has no url
This commit is contained in:
parent
f22c7afc59
commit
17e341d245
@ -1491,7 +1491,7 @@ function format_hashtags(&$item) {
|
||||
$term = htmlspecialchars($t['term'], ENT_COMPAT, 'UTF-8', false) ;
|
||||
if(! trim($term))
|
||||
continue;
|
||||
if(strpos($item['body'], $t['url']))
|
||||
if($t['url'] && strpos($item['body'], $t['url']))
|
||||
continue;
|
||||
if($s)
|
||||
$s .= ' ';
|
||||
|
Reference in New Issue
Block a user