Merge pull-request #1966

This commit is contained in:
Frederic Guillot
2016-03-07 19:24:03 -05:00

View File

@@ -31,7 +31,7 @@ class Client
*/
public static function connect($username = null, $password = null)
{
$client = new self;
$client = new static;
$client->open($client->getLdapServer());
$username = $username ?: $client->getLdapUsername();
$password = $password ?: $client->getLdapPassword();