Show
Ignore:
Timestamp:
06/22/07 02:22:17 (1 year ago)
Author:
SamBauers
Message:

ldap-authentication: Added workaround for bbPress bug 670, tagged version 2.0.2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ldap-authentication/trunk/ldap-authentication.php

    r433 r447  
    55Description: Allows users to authenticate against an LDAP service 
    66Author: Sam Bauers 
    7 Version: 2.0.1 
     7Version: 2.0.2 
    88Author URI:  
    99 
     
    2121                  Added support for bb_admin_add_submenu() 
    22222.0.1   : Made PHP4 compatible 
     232.0.2   : Workaround for bbPress bug 670 - http://trac.bbpress.org/ticket/670 
    2324*/ 
    2425 
    2526 
    2627/** 
    27  * LDAP authentication for bbPress version 2.0.1 
     28 * LDAP authentication for bbPress version 2.0.2 
    2829 *  
    2930 * ---------------------------------------------------------------------------------- 
     
    5859 * @copyright 2007 Sam Bauers 
    5960 * @license   http://www.gnu.org/licenses/gpl.txt GNU General Public License v2 
    60  * @version   2.0.1 
     61 * @version   2.0.2 
    6162 **/ 
    6263 
     
    404405         * @author Sam Bauers 
    405406         **/ 
    406         function bb_check_login($user, $pass, $already_md5 = false) 
    407         { 
    408                 global $ldap_authentication; 
    409                 return $ldap_authentication->checkLogin($user, $pass, $already_md5); 
     407        if (!function_exists('bb_check_login')) { 
     408                function bb_check_login($user, $pass, $already_md5 = false) 
     409                { 
     410                        global $ldap_authentication; 
     411                        return $ldap_authentication->checkLogin($user, $pass, $already_md5); 
     412                } 
    410413        } 
    411414}