Issue with the latest wordpress plugin

Discussion in 'aMember Pro v.4' started by bluewaveadvisors, Sep 9, 2013.

  1. bluewaveadvisors

    bluewaveadvisors New Member

    Joined:
    Oct 23, 2012
    Messages:
    5
    Just found a problem with the latest wordpress plugin, on the file protection.php line 119 this:

    Code:
    if(is_category()){
                $cat = @$GLOBALS['wp_query']->query_vars['cat'];echo $cat;
                $cat_settings = new am4_Settings_Category($cat);
                if($settings->{'protected'}){
                    if(!$this->haveAccess(am4AccessRequirement::createRequirements($settings->{'access'}), $settings)){
                        $this->makeRedirect($type,$settings, true);
                    }
                }
            }
    where it should be: $settings = new am4_Settings_Category($cat);

    Code:
    if(is_category()){
                $cat = @$GLOBALS['wp_query']->query_vars['cat'];echo $cat;
                $settings = new am4_Settings_Category($cat);
                if($settings->{'protected'}){
                    if(!$this->haveAccess(am4AccessRequirement::createRequirements($settings->{'access'}), $settings)){
                        $this->makeRedirect($type,$settings, true);
                    }
                }
            }
  2. bluewaveadvisors

    bluewaveadvisors New Member

    Joined:
    Oct 23, 2012
    Messages:
    5
    Just to clarify, this bog makes all the archive or category page unprotected, so this is pretty serious.

Share This Page