diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index 166fe466796..e06d472f326 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -1,7 +1,7 @@ * Copyright (C) 2004 Benoit Mortier - * Copyright (C) 2005-2011 Regis Houssin + * Copyright (C) 2005-2017 Regis Houssin * Copyright (C) 2006-2015 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -681,7 +681,7 @@ class Ldap $op = @fsockopen($host, $port, $errno, $errstr, $timeout); if (!$op) return false; //DC is N/A else { - fclose($opanak); //explicitly close open socket connection + fclose($op); //explicitly close open socket connection return true; //DC is up & running, we can safely connect with ldap_connect } } @@ -1435,5 +1435,3 @@ class Ldap return 0; } } - -