summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML
diff options
context:
space:
mode:
authorMatt Schwager <schwag09@gmail.com>2015-09-28 14:38:43 -0400
committerMatt Schwager <schwag09@gmail.com>2015-09-28 14:38:43 -0400
commitff083445bd77930d080f84400c0ff08f06b66dd4 (patch)
treed501f1aff44df06bc61d528abbefb1ea08fe5373 /lib/SimpleSAML
parentbe5338e05dca91b250818b4f2a7f6ef17dfa6fa5 (diff)
downloadsimplesamlphp-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.php2
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))