Skip to content
Snippets Groups Projects
Unverified Commit fcee409c authored by Pavel Břoušek's avatar Pavel Břoušek Committed by GitHub
Browse files

Merge pull request #26 from CESNET/melanger-patch-1

fix: skip IdPs without tags
parents 76d3e869 765007ab
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ if (!empty($_GET['idphint']) && !isset($_GET['index'])) {
foreach ($metadata as $entityid => $idpentry) {
if (!empty($searchBox['include']['tags'])) {
foreach ($searchBox['include']['tags'] as $tag) {
if ($tag === $idpentry['tag']) {
if (!empty($idpentry['tag']) && $tag === $idpentry['tag']) {
$filteredMetadata[$entityid] = $idpentry;
break;
}
......@@ -75,7 +75,7 @@ if (!empty($_GET['idphint']) && !isset($_GET['index'])) {
foreach ($metadata as $entityid => $idpentry) {
if (!empty($searchBox['exclude']['tags'])) {
foreach ($searchBox['exclude']['tags'] as $tag) {
if ($tag === $idpentry['tag']) {
if (!empty($idpentry['tag']) && $tag === $idpentry['tag']) {
unset($metadata[$entityid]);
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment