Skip to content
Snippets Groups Projects
Commit ff083445 authored by Matt Schwager's avatar Matt Schwager
Browse files

Removed new call before makeException.

The `makeException` function returns an instantiated object, so the
caller shouldn't also call `new`.
parent be5338e0
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
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