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) ;
|
$term = htmlspecialchars($t['term'], ENT_COMPAT, 'UTF-8', false) ;
|
||||||
if(! trim($term))
|
if(! trim($term))
|
||||||
continue;
|
continue;
|
||||||
if(strpos($item['body'], $t['url']))
|
if($t['url'] && strpos($item['body'], $t['url']))
|
||||||
continue;
|
continue;
|
||||||
if($s)
|
if($s)
|
||||||
$s .= ' ';
|
$s .= ' ';
|
||||||
|
Reference in New Issue
Block a user