Skip to:
Content
Pages
Categories
Search
Top
Bottom

A few fixes for NOTICE level errors…

  • Avatar of amereservant
    amereservant
    Member

    @amereservant

    I’m running WordPress with WP_DEBUG on and there’s a couple of E_NOTICE level errors in your code.

    The first is on line 102, the variable `$protection` is not defined.
    This can easily be fixed by adding on line 100:
    `else
    $protection = false;
    `
    That ensures the $protection variable gets set.

    The second one is on line 86, Uninitialized string offset: 0.
    So line 86 can be changed to:
    ` if ( $bp->current_action == ‘feed’ || ( isset($bp->action_variables[0]) && $bp->action_variables[0] == ‘feed’ ) )`

    I hope this helps and thanks again for your plugin.

You must be logged in to reply to this topic.