From 767240698f0d018202d613b24bfaa0e6c7538d87 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 15 Sep 2017 18:31:22 +0200 Subject: [PATCH] Fix: wrong var name --- htdocs/core/class/ldap.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } } - -