Skip to content
Snippets Groups Projects
Commit ae4671d3 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Merge pull request #263 from mschwager/master

Removed new call before makeException.
parents be5338e0 ff083445
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ class SimpleSAML_Auth_LDAP { ...@@ -80,7 +80,7 @@ class SimpleSAML_Auth_LDAP {
*/ */
$this->ldap = @ldap_connect($hostname, $port); $this->ldap = @ldap_connect($hostname, $port);
if ($this->ldap == FALSE) 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. */ /* Enable LDAP protocol version 3. */
if (!@ldap_set_option($this->ldap, LDAP_OPT_PROTOCOL_VERSION, 3)) if (!@ldap_set_option($this->ldap, LDAP_OPT_PROTOCOL_VERSION, 3))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment