Skip to content
Snippets Groups Projects
Commit 99a43140 authored by Aleksander Machniak's avatar Aleksander Machniak
Browse files

Fix bug where LDAP_OPT_DEBUG_LEVEL option couldn't have been disabled (#4918)

parent 102fbbd9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1924,9 +1924,7 @@ class Net_LDAP3
private function config_set_debug($value)
{
$this->config['debug'] = (bool) $value;
if ((int)($value) > 0) {
ldap_set_option(null, LDAP_OPT_DEBUG_LEVEL, (int)($value));
}
ldap_set_option(null, LDAP_OPT_DEBUG_LEVEL, (int) $value);
}
 
/**
Loading
Loading
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