From d38c27e9c74f1e92a3f6cb531ad30b0d7d5404a3 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Sun, 13 Sep 2015 00:54:57 +0100 Subject: [PATCH] Fix check for allowing downgrades --- libraries/cms/installer/script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/cms/installer/script.php b/libraries/cms/installer/script.php index 034b415fc3e74..f8ade1ca839e0 100644 --- a/libraries/cms/installer/script.php +++ b/libraries/cms/installer/script.php @@ -132,7 +132,7 @@ public function preflight($type, $parent) } // Abort if the extension being installed is not newer than the currently installed version - if ($type == 'Update' && $this->allowDowngrades) + if (strtolower($type) == 'Update' && !$this->allowDowngrades) { $manifest = $this->getItemArray('manifest_cache', '#__extensions', 'element', JFactory::getDbo()->quote($this->extension)); $oldRelease = $manifest['version'];