Fixed potential error when upgrading Grav

This commit is contained in:
Matias Griese
2020-12-04 19:29:07 +02:00
parent 85c239bc18
commit 7c0ba80530
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
# v1.7.0-rc.20
## mm/dd/2020
1. [](#bugfix)
* Fixed potential error when upgrading Grav
# v1.7.0-rc.19 # v1.7.0-rc.19
## 12/02/2020 ## 12/02/2020

View File

@@ -110,6 +110,8 @@ final class VersionUpdater
protected function loadUpdates(): void protected function loadUpdates(): void
{ {
$this->updates = [];
$schema = $this->getExtensionSchema(); $schema = $this->getExtensionSchema();
$iterator = new DirectoryIterator($this->path); $iterator = new DirectoryIterator($this->path);
foreach ($iterator as $item) { foreach ($iterator as $item) {