Skip to content

Commit 220f95a

Browse files
committed
Fix Psalm-issue
1 parent f20d319 commit 220f95a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Auth/Source/X509userCert.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ public function authenticate(&$state)
154154
}
155155

156156
$ldap_certs = $ldapcf->getAttributes($dn, $this->ldapusercert);
157-
if ($ldap_certs === false) {
157+
158+
if (empty($ldap_certs)) {
158159
\SimpleSAML\Logger::error('authX509: no certificate found in LDAP for dn='.$dn);
159160
$state['authX509.error'] = "UNKNOWNCERT";
160161
$this->authFailed($state);

0 commit comments

Comments
 (0)