MDL-31161 fix notice when checking plugin requirements
Credit goes to Joseph Rézeau, thanks.
This commit is contained in:
+1
-2
@@ -597,8 +597,7 @@ class core_admin_renderer extends plugin_renderer_base {
|
||||
|
||||
if (is_null($otherplugin)) {
|
||||
$ok = false;
|
||||
}
|
||||
if ($requiredversion != ANY_VERSION and $otherplugin->versiondisk < $requiredversion) {
|
||||
} else if ($requiredversion != ANY_VERSION and $otherplugin->versiondisk < $requiredversion) {
|
||||
$ok = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user