Fix: wrong var name

This commit is contained in:
Regis Houssin 2017-09-15 18:31:22 +02:00
parent 7f57f737b3
commit 767240698f

View File

@ -1,7 +1,7 @@
<?php <?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2005-2017 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2006-2015 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2006-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * 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); $op = @fsockopen($host, $port, $errno, $errstr, $timeout);
if (!$op) return false; //DC is N/A if (!$op) return false; //DC is N/A
else { 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 return true; //DC is up & running, we can safely connect with ldap_connect
} }
} }
@ -1435,5 +1435,3 @@ class Ldap
return 0; return 0;
} }
} }