From e7ea5e53011a77e8042354e33c89d4a76c15d570 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Fri, 25 Apr 2014 00:48:13 -0400 Subject: [PATCH] Try fixing UpgradeController version check again... --- airtime_mvc/application/controllers/UpgradeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/controllers/UpgradeController.php b/airtime_mvc/application/controllers/UpgradeController.php index 2a22999f3..e9ad48131 100644 --- a/airtime_mvc/application/controllers/UpgradeController.php +++ b/airtime_mvc/application/controllers/UpgradeController.php @@ -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.");