WordPress.org

Plugin Directory

Changeset 510214


Ignore:
Timestamp:
02/25/12 02:49:31 (2 years ago)
Author:
ericmann
Message:

Fix a missed typo.

Location:
absolute-privacy/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • absolute-privacy/trunk/absolute_privacy.php

    r509947 r510214  
    77Description: Give your blog absolute privacy. Forces users to register with their name and to choose a password (do not forget to enable registrations). Users cannot login until approved by an administrator. Also, gives the option to lock down your site from non-logged in viewers.  
    88Author: John Kolbert, Eric Mann 
    9 Version: 2.0.6 
     9Version: 2.0.7 
    1010Author URI: http://www.johnkolbert.com/ 
    1111 
  • absolute-privacy/trunk/functions.php

    r509947 r510214  
    4444        $options[ 'redirect_page' ] = trim( $_POST[ 'redirect_page' ],'{}' ); 
    4545        $options[ 'allowed_pages' ] = trim( $_POST[ 'allowed_pages' ],'{}' ); 
    46         $options[ 'admin_block' ] = trim( $_POST[ 'admin_block' ], '{}' ); 
     46        $options[ 'admin_block' ] = isset($_POST['admin_block']) ? trim( $_POST[ 'admin_block' ], '{}' ) : null; 
    4747        $options[ 'rss_control' ] = trim( $_POST[ 'rss_control' ], '{}' ); 
    4848        $options[ 'rss_characters' ] = trim( $_POST[ 'rss_characters' ], '{}' ); 
     
    839839 
    840840    $cap = $wpdb->prefix . "capabilities"; 
    841     if ( $tempUser && array_key_exists( ABSPRIVACY_ROLEREF, $user->$cap ) ) {  //if the user's role is listed as "unapproved" 
     841    if ( $tempUser && array_key_exists( ABSPRIVACY_ROLEREF, $tempUser->$cap ) ) {  //if the user's role is listed as "unapproved" 
    842842        $user = new WP_Error( 'unapproved', __("<strong>ERROR</strong>: The administrator of this site must approve your account before you can login. You will be notified via email when it has been approved.") ); 
    843843        add_filter( 'shake_error_codes', 'abpr_add_error_code' );   //make the login box shake 
Note: See TracChangeset for help on using the changeset viewer.