From dc49aaf94dd12f5dea225e6c645dde34b37599aa Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 31 Jan 2023 11:35:25 +0100 Subject: [PATCH] Resolve #849 --- .../ldap-contacts-suggestions/LdapContactsSuggestions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php b/plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php index a883a1063..305f3d823 100644 --- a/plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php +++ b/plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php @@ -6,9 +6,9 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges private bool $bUseStartTLS = true; - private string $sBindDn = null; + private string $sBindDn = ''; - private string $sBindPassword = null; + private string $sBindPassword = ''; private string $sBaseDn = 'ou=People,dc=example,dc=com'; @@ -85,7 +85,7 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges } if (!@\ldap_bind($oCon, $this->sBindDn, $this->sBindPassword)) { - if (is_null($this->sBindDn)) { + if (\is_null($this->sBindDn)) { $this->logLdapError($oCon, 'ldap_bind (anonymous)'); } else { $this->logLdapError($oCon, 'ldap_bind');