Forums

[Plugin: is_human()] update for is_human.php v.1.4.2 (1 post)

  1. andib
    Member
    Posted 1 year ago #

    hiho,

    as there is no other way to contact the author here my short note about some inprovements in the is_human.php:

    to get rid of the php warnings about "unserialize expects string, not array":

      original code:
      ... unserialize($this->ih[XY]) ...
      new code:
      ... unserialize((string)$this->ih[XY]) ...

    then the script wasnt working if I switched off "show registered users" because if a user is not logged in $userdata is NULL - not empty. so:

      original code:
      ... $userdata->user_login !== '' ...
      new code:
      ... $userdata->user_login !== NULL ...

    you can download the new is_human.php here.

    besides this plugin is ROCK N ROLL! thx alot for this wonderful piece of code of peace in the war against spam ;)

    best regards,
    andi

    ps: regarding the system settings i can only tell you that i have running the wp2.6 on an apache2 with PHP Version 5.2.3 . For further information please contact me directly.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags