Skip to content

Commit

Permalink
Fix check for allowing downgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Sep 12, 2015
1 parent a9dc9c1 commit d38c27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cms/installer/script.php
Expand Up @@ -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'];
Expand Down

0 comments on commit d38c27e

Please sign in to comment.