fix codacy hint

This commit is contained in:
Alexander Bigga 2020-04-17 17:00:40 +02:00
parent 23a0677045
commit 8afb35c1df
1 changed files with 1 additions and 1 deletions

View File

@ -789,7 +789,7 @@ class OaiPmh extends \Kitodo\Dlf\Common\AbstractPlugin
return $this->error('noSetHierarchy');
}
$ListSets = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'ListSets');
foreach($allResults as $resArray) {
foreach ($allResults as $resArray) {
$set = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'set');
$set->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'setSpec', htmlspecialchars($resArray['oai_name'], ENT_NOQUOTES, 'UTF-8')));
$set->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'setName', htmlspecialchars($resArray['label'], ENT_NOQUOTES, 'UTF-8')));