Skip to content

Commit

Permalink
Changed empty if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jajreijnders committed Jan 6, 2022
1 parent 6fbc12c commit edcd61c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions oai-pmh/oai.php
Expand Up @@ -230,15 +230,11 @@ function getTemplates($metadataPrefix,$from,$until) {
{
$currentTemplate = $templates[$i];
$tempMetaData = call_user_func(get_meta_data,$currentTemplate['template_id'],$currentTemplate["owner_username"],$currentTemplate["template_type"]);
if($tempMetaData->domain == 'unknown' or $tempMetaData->level == "unknown"){
//echo "Public record without metadata specified.";
}
else
{
if($tempMetaData->domain != 'unknown' and $tempMetaData->level != "unknown"){
$currentRecord = call_user_func(makeRecordFromTemplate,$metadataPrefix,$currentTemplate, $tempMetaData);
$tmpRecords[] = $currentRecord;
//$tmpTemplates[] = $currentTemplate;
}

}

//$response->templates = $tmpTemplates;
Expand Down

0 comments on commit edcd61c

Please sign in to comment.