diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-25 21:48:42 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-05 09:33:17 +0200 |
commit | 17e341d24581af3cc42baae66a0d83162c2d9649 (patch) | |
tree | 8d5ab5d678352c4a75aba8fe55f1367c3022630a | |
parent | f22c7afc59d0f6650594127cf45e8770723b1b20 (diff) | |
download | volse-hubzilla-17e341d24581af3cc42baae66a0d83162c2d9649.tar.gz volse-hubzilla-17e341d24581af3cc42baae66a0d83162c2d9649.tar.bz2 volse-hubzilla-17e341d24581af3cc42baae66a0d83162c2d9649.zip |
php strpos() empty needle warning when a term entry has no url
-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 c82fad517..086d507af 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 .= ' '; |