diff --git a/plugins/importexport/pubmed/PubMedExportPlugin.php b/plugins/importexport/pubmed/PubMedExportPlugin.php index f15296f8311..38601ea69e0 100644 --- a/plugins/importexport/pubmed/PubMedExportPlugin.php +++ b/plugins/importexport/pubmed/PubMedExportPlugin.php @@ -191,12 +191,9 @@ public function exportIssues($issueIds, $context, $user) foreach ($issueIds as $issueId) { $sections = Repo::section()->getByIssueId($issueId); - $submissionsInSections = []; - $submissionsInSections[] = Repo::submission()->getInSections($issueId, $context->getId()); + $submissionsInSections = Repo::submission()->getInSections($issueId, $context->getId()); foreach ($sections as $section) { - foreach ($submissionsInSections as $articles) { - $input = array_merge($input, $articles[$section->getId()]['articles']); - } + $input = array_merge($input, $submissionsInSections[$section->getId()]['articles']); } }