aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-25 21:48:42 -0700
committerzotlabs <mike@macgirvin.com>2018-03-25 21:48:42 -0700
commit2fc3f381ac3486e8c4910e70a3933a4b6718ba19 (patch)
treec338324ce2ca42af7814db263096efce33c63b0f /include
parent2a2a21a73624a7dba2db44e53a28efeb74003e87 (diff)
downloadvolse-hubzilla-2fc3f381ac3486e8c4910e70a3933a4b6718ba19.tar.gz
volse-hubzilla-2fc3f381ac3486e8c4910e70a3933a4b6718ba19.tar.bz2
volse-hubzilla-2fc3f381ac3486e8c4910e70a3933a4b6718ba19.zip
php strpos() empty needle warning when a term entry has no url
Diffstat (limited to 'include')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index c1e064857..f9cefd020 100644
--- a/include/text.php
+++ b/include/text.php
@@ -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 .= ' ';