Changing new self to new static, to accommodate subclasses of LdapClient.
This commit is contained in:
@@ -31,7 +31,7 @@ class Client
|
|||||||
*/
|
*/
|
||||||
public static function connect($username = null, $password = null)
|
public static function connect($username = null, $password = null)
|
||||||
{
|
{
|
||||||
$client = new self;
|
$client = new static;
|
||||||
$client->open($client->getLdapServer());
|
$client->open($client->getLdapServer());
|
||||||
$username = $username ?: $client->getLdapUsername();
|
$username = $username ?: $client->getLdapUsername();
|
||||||
$password = $password ?: $client->getLdapPassword();
|
$password = $password ?: $client->getLdapPassword();
|
||||||
|
|||||||
Reference in New Issue
Block a user