diff options
author | Matt Schwager <schwag09@gmail.com> | 2015-09-28 14:38:43 -0400 |
---|---|---|
committer | Matt Schwager <schwag09@gmail.com> | 2015-09-28 14:38:43 -0400 |
commit | ff083445bd77930d080f84400c0ff08f06b66dd4 (patch) | |
tree | d501f1aff44df06bc61d528abbefb1ea08fe5373 /lib/SimpleSAML | |
parent | be5338e05dca91b250818b4f2a7f6ef17dfa6fa5 (diff) | |
download | simplesamlphp-ff083445bd77930d080f84400c0ff08f06b66dd4.zip simplesamlphp-ff083445bd77930d080f84400c0ff08f06b66dd4.tar.gz simplesamlphp-ff083445bd77930d080f84400c0ff08f06b66dd4.tar.bz2 |
Removed new call before makeException.
The `makeException` function returns an instantiated object, so the
caller shouldn't also call `new`.
Diffstat (limited to 'lib/SimpleSAML')
-rw-r--r-- | lib/SimpleSAML/Auth/LDAP.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php index 933b2ea..b28d060 100644 --- a/lib/SimpleSAML/Auth/LDAP.php +++ b/lib/SimpleSAML/Auth/LDAP.php @@ -80,7 +80,7 @@ class SimpleSAML_Auth_LDAP { */ $this->ldap = @ldap_connect($hostname, $port); if ($this->ldap == FALSE) - throw new $this->makeException('Library - LDAP __construct(): Unable to connect to \'' . $hostname . '\'', ERR_INTERNAL); + throw $this->makeException('Library - LDAP __construct(): Unable to connect to \'' . $hostname . '\'', ERR_INTERNAL); /* Enable LDAP protocol version 3. */ if (!@ldap_set_option($this->ldap, LDAP_OPT_PROTOCOL_VERSION, 3)) |