From 9316803fc6677ceca6d20b1bb108811854a838fe Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 24 Jan 2020 18:42:34 +0100 Subject: [PATCH] fixed PHP issue --- lam/lib/account.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 8efb0240..930eeed0 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -717,7 +717,8 @@ function connectToLDAP($serverURL, $startTLS) { } if (defined('LDAP_OPT_X_TLS_CACERTFILE')) { $cfgMain = new LAMCfgMain(); - if (!empty($cfgMain->getSSLCaCertificates())) { + $certificates = $cfgMain->getSSLCaCertificates(); + if (!empty($certificates)) { ldap_set_option($server, LDAP_OPT_X_TLS_CACERTFILE, $cfgMain->getSSLCaCertPath()); } }