Resolve language item-related PIP GUI todos
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / package / PackageArchive.class.php
index ef9922d07e36770c0739e9e3ab6ee9616cb0a9fb..6942f4a5b7e2ebd3f0478b26b7f2d9c1da4b9159 100644 (file)
@@ -337,7 +337,10 @@ class PackageArchive {
                        $this->requirements['com.woltlab.wcf'] = ['name' => 'com.woltlab.wcf'];
                }
                
-               if ($this->package != null) {
+               // during installations, `Package::$packageVersion` can be `null` which causes issues
+               // in `PackageArchive::filterUpdateInstructions()`; as update instructions are not needed
+               // for installations, not filtering update instructions is okay
+               if ($this->package !== null && $this->package->packageVersion !== null) {
                        $this->filterUpdateInstructions();
                }