Try fixing UpgradeController version check again...

This commit is contained in:
Albert Santoni 2014-04-25 00:48:13 -04:00
parent 54db74f622
commit e7ea5e5301
1 changed files with 1 additions and 1 deletions

View File

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