diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-25 21:48:42 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-03-25 21:48:42 -0700 |
commit | 2fc3f381ac3486e8c4910e70a3933a4b6718ba19 (patch) | |
tree | c338324ce2ca42af7814db263096efce33c63b0f /include/text.php | |
parent | 2a2a21a73624a7dba2db44e53a28efeb74003e87 (diff) | |
download | volse-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/text.php')
-rw-r--r-- | include/text.php | 2 |
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 .= ' '; |