summaryrefslogtreecommitdiff
path: root/app/Core/Ldap/Client.php
diff options
context:
space:
mode:
authorDj Padzensky <djpadz@padz.net>2016-03-07 15:05:06 -0800
committerDj Padzensky <djpadz@padz.net>2016-03-07 15:05:06 -0800
commita8abc70bcbcbb3f7f84ff2d0b0d0b6d87151fde0 (patch)
treeb0df5b422c9e8e24e729108444b14d8d8dfbbc4d /app/Core/Ldap/Client.php
parent65ded5a49e6a151e8e6fec3a43e3fef2680bed5c (diff)
Changing new self to new static, to accommodate subclasses of LdapClient.
Diffstat (limited to 'app/Core/Ldap/Client.php')
-rw-r--r--app/Core/Ldap/Client.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Core/Ldap/Client.php b/app/Core/Ldap/Client.php
index e35e4ea0..05658190 100644
--- a/app/Core/Ldap/Client.php
+++ b/app/Core/Ldap/Client.php
@@ -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();