Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 0400154

Browse files
committed
Fixed wrong call of empty function and LDAP filter
1 parent 8ed4748 commit 0400154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AdapterLdap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ public function getPerunUser($idpEntityId, $uids)
1717
$query .= "(eduPersonPrincipalNames=$uid)";
1818
}
1919

20-
if ($empty($query)) {
20+
if (empty($query)) {
2121
return null;
2222
}
2323

2424
$user = sspmod_perun_LdapConnector::searchForEntity("ou=People,dc=perun,dc=cesnet,dc=cz",
25-
"(!$query)",
25+
"(|$query)",
2626
array("perunUserId", "displayName", "cn", "givenName", "sn", "preferredMail", "mail")
2727
);
2828

0 commit comments

Comments
 (0)