MDL-31161 fix notice when checking plugin requirements

Credit goes to Joseph Rézeau, thanks.
This commit is contained in:
Petr Skoda
2012-01-19 18:35:36 +01:00
committed by kordan
parent 27630d8b5b
commit 716cd6b507
+1 -2
View File
@@ -599,8 +599,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;
}