Skip to content

Commit

Permalink
wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Nov 4, 2024
1 parent f152904 commit de1931a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/DirectoryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,9 @@ public function syncPublicationType(string $url): array
objectType: 'publicationType',
);
// Filter publication types to only include those with a matching source
$existingPublicationTypes = array_filter($existingPublicationTypes, function($publicationType) use ($source) {
$existingPublicationTypes = array_filter($existingPublicationTypes, function($publicationType) use ($url) {
// Check if the publication type has a 'source' property and if it matches the given source
return isset($publicationType['source']) && $publicationType['source'] === $source;
return isset($publicationType['source']) && $publicationType['source'] === $url;
});


Expand Down

0 comments on commit de1931a

Please sign in to comment.