Allow upgrades from Airtime 2.5.1 because the version wasn't bumped

internally to 2.5.2
This commit is contained in:
Albert Santoni 2014-04-25 00:40:51 -04:00
parent ce9b9c7314
commit 54db74f622
1 changed files with 3 additions and 3 deletions

View File

@ -123,12 +123,12 @@ class UpgradeController extends Zend_Controller_Action
->findOne(); ->findOne();
$airtime_version = $pref->getValStr(); $airtime_version = $pref->getValStr();
if ($airtime_version != '2.5.2') { if ($airtime_version != '2.5.2' || $airtime_version != '2.5.1') {
$this->getResponse() $this->getResponse()
->setHttpResponseCode(400) ->setHttpResponseCode(400)
->appendBody("Upgrade to Airtime 2.5.3 FAILED. You must be using Airtime 2.5.2 to upgrade."); ->appendBody("Upgrade to Airtime 2.5.3 FAILED. You must be using Airtime 2.5.1 or 2.5.2 to upgrade.");
return false; return false;
} }
return true; return true;
} }
} }