From 0b2a86a432c16920bb3f3bdbf3f9c89831f5f752 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 13 May 2017 12:08:43 +0200 Subject: [PATCH] small fix --- core/Update/PluginUpdateManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Update/PluginUpdateManager.php b/core/Update/PluginUpdateManager.php index 3220464f..12749a90 100644 --- a/core/Update/PluginUpdateManager.php +++ b/core/Update/PluginUpdateManager.php @@ -426,8 +426,8 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis } $pluginUpdateData = new PluginUpdateData($pluginVersion); $version = $pluginClass::getVersion(); - - if ($pluginUpdateData->isNewerThan($version) && $pluginUpdateData->minManiaControlVersion >= ManiaControl::VERSION) { + + if ($pluginUpdateData->isNewerThan($version) && ($pluginUpdateData->maxManiaControlVersion == -1 || $pluginUpdateData->maxManiaControlVersion >= ManiaControl::VERSION)) { return $pluginUpdateData; } return false;