Skip to content

Commit

Permalink
pkp/pkp-lib#2942 fix infinite loop in upgrade if file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Oct 25, 2017
1 parent 18c12ac commit 38d5d2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/install/Upgrade.inc.php
Expand Up @@ -114,6 +114,7 @@ function removeReviewEntries() {
} elseif (count($matchedResults)==0) {
// No filenames matched. Skip migrating.
error_log("WARNING: Unable to find a match for \"$globPattern\" in \"" . $submissionFileManager->getBasePath() . "\". Skipping this file.");
$fileResult->MoveNext();
continue;
}
$discoveredFilename = array_shift($matchedResults);
Expand All @@ -122,6 +123,7 @@ function removeReviewEntries() {
unlink($discoveredFilename);
} else {
error_log("WARNING: File \"$discoveredFilename\" does not exist.");
$fileResult->MoveNext();
continue;
}
$fileResult->MoveNext();
Expand Down

0 comments on commit 38d5d2b

Please sign in to comment.