Support » Plugin: SpamReferrerBlock » PHP error on empty $spammer->item

  • Resolved billsmithem

    (@billsmithem)


    Getting ‘Warning: strpos() [function.strpos]: Empty delimiter’ on line 148 of spam_referrer_block.php, caused by $spammer->item being an empty string.
    Changed 148 to read:

    if ($spammer->item != “” && (strpos($ref, $spammer->item) !== false)) {

    so the blank parameter isn’t passed.

    Site is running php 5.2.17

    https://wordpress.org/plugins/spamreferrerblock/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP error on empty $spammer->item’ is closed to new replies.