From 9f3f3e501d4450ac439eea2e3bbbc735bd42b900 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Sep 2018 17:06:31 +0200 Subject: [PATCH] fix PHP Warning: Use of undefined constant OPENLDAP_LDAPSERVER --- api/src/Ldap/ServerInfo.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api/src/Ldap/ServerInfo.php b/api/src/Ldap/ServerInfo.php index ab7838c67b..e4d53dc25e 100644 --- a/api/src/Ldap/ServerInfo.php +++ b/api/src/Ldap/ServerInfo.php @@ -8,7 +8,6 @@ * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @package api * @subpackage ldap - * @version $Id$ */ namespace EGroupware\Api\Ldap; @@ -188,17 +187,17 @@ class ServerInfo switch($info[0]['structuralobjectclass'][0]) { case 'OpenLDAProotDSE': - $ldapServerType = OPENLDAP_LDAPSERVER; + $ldapServerType = self::OPENLDAP; break; default: - $ldapServerType = UNKNOWN_LDAPSERVER; + $ldapServerType = self::UNKNOWN; break; } $ldapServerInfo->setServerType($ldapServerType); } if ($info[0]['vendorname'] && stripos($info[0]['vendorname'][0], 'samba') !== false) { - $ldapServerInfo->setServerType(SAMBA4_LDAPSERVER); + $ldapServerInfo->setServerType(self::SAMBA4); } // check for subschema entry dn