diff --git a/classes/submission/Submission.php b/classes/submission/Submission.php index 242b769840..443ce2c342 100644 --- a/classes/submission/Submission.php +++ b/classes/submission/Submission.php @@ -228,7 +228,7 @@ public function getTotalGalleyViews() foreach ($publications as $publication) { foreach ($publication->getData('galleys') as $galley) { $file = $galley->getFile(); - if (!$galley->getRemoteUrl() && $file) { + if (!$galley->getRemoteUrl() && $file && !in_array($file->getId(), $fileIds)) { $fileIds[] = $file->getId(); } }