Skip to content

Commit

Permalink
Merge pull request #624 from matks/fix-php81-warning
Browse files Browse the repository at this point in the history
Do not check version if not provided
  • Loading branch information
matks committed Sep 18, 2023
2 parents 102794f + 9fdd224 commit f17f38b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/UpgradeSelfCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,10 @@ public function isApacheModRewriteEnabled()
*/
public function checkKeyGeneration()
{
if ($this->upgrader->version_num === null) {
return true;
}

// Check if key is needed on the version we are upgrading to, if lower, not needed
if (version_compare($this->upgrader->version_num, '8.1.0', '<')) {
return true;
Expand Down

0 comments on commit f17f38b

Please sign in to comment.