arunshekher / nofollow

An SEO oriented plugin that inserts rel='nofollow' attribute to URLs posted on your e107 website programmatically.
GNU Affero General Public License v3.0
3 stars 2 forks source link

weird warnings #2

Open Jimmi08 opened 5 years ago

Jimmi08 commented 5 years ago

php 5.6

Hi, I suppose this is something with my data, but I don't know where to look. Forum post page.

strpos(): Empty needle, Line 428 of /***/e107_plugins/nofollow/NoFollow.php

maybe 30 times

arunshekher commented 5 years ago

@Jimmi08, Yes those warnings are normal, considering the regex pattern I used. Perhaps I'll see if I can add a if( ! empty($needle) ) {...} conditional or similar to remove them in next release.