Skip to content

Commit

Permalink
// could not upgrade to version without sql file in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Feb 25, 2015
1 parent 7bf340e commit fb71d5c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions AdminSelfUpgrade.php
Expand Up @@ -2168,16 +2168,11 @@ public function doUpgrade()
if (version_compare($version, $oldversion) == 1 && version_compare(INSTALL_VERSION, $version) != -1)
$neededUpgradeFiles[] = $version;

if (empty($neededUpgradeFiles) || count($neededUpgradeFiles) === 0)

if (strpos(INSTALL_VERSION, '.') === false)
{
$this->next = 'error';
$this->nextQuickInfo[] = $this->l('No upgrade is possible.');
$this->nextErrors[] = $this->l('No upgrade is possible.');
if (strpos(INSTALL_VERSION, '.') === false)
{
$this->nextQuickInfo[] = sprintf($this->l('%s is not a valid version number.'), INSTALL_VERSION);
$this->nextErrors[] = sprintf($this->l('%s is not a valid version number.'), INSTALL_VERSION);
}
$this->nextQuickInfo[] = sprintf($this->l('%s is not a valid version number.'), INSTALL_VERSION);
$this->nextErrors[] = sprintf($this->l('%s is not a valid version number.'), INSTALL_VERSION);
return false;
}

Expand Down

0 comments on commit fb71d5c

Please sign in to comment.