Skip to content

Commit

Permalink
MDL-77128 upgrade: Fix incompatible check in upgrade to match docs
Browse files Browse the repository at this point in the history
Backport of MDL-72324
  • Loading branch information
mackensen committed Apr 18, 2023
1 parent 94836d5 commit 0864e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/upgradelib.php
Expand Up @@ -614,7 +614,7 @@ function upgrade_plugins($type, $startcallback, $endcallback, $verbose) {

// Throw exception if plugin is incompatible with moodle version.
if (!empty($plugin->incompatible)) {
if ($CFG->branch <= $plugin->incompatible) {
if ($CFG->branch >= $plugin->incompatible) {
throw new plugin_incompatible_exception($component, $plugin->version);
}
}
Expand Down

0 comments on commit 0864e3a

Please sign in to comment.