From db596d54b5f55ec0e0b369921240c491cfdbaa32 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Fri, 11 Dec 2015 12:29:59 -0500 Subject: [PATCH] Fix bug in my last commit --- airtime_mvc/application/models/Preference.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 7021fac20..45571983d 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -1593,18 +1593,18 @@ class Application_Model_Preference */ public static function getBandwidthLimit() { - $val = self::getValue("bandwidth_limit"); - if (empty($val)) { + $bandwidthLimit = self::getValue("bandwidth_limit"); + if (empty($bandwidthLimit)) { // Set and return the plan defaults // TODO: remove this once all existing customers have this pref set $planType = self::GetPlanLevel(); - $val = "starter"; + $bandwidthLimit = Billing::$PLAN_TYPE_DEFAULTS["starter"]["bandwidth_limit"]; if (isset(Billing::$PLAN_TYPE_DEFAULTS[$planType])) { - $val = Billing::$PLAN_TYPE_DEFAULTS[$planType]["bandwidth_limit"]; + $bandwidthLimit = Billing::$PLAN_TYPE_DEFAULTS[$planType]["bandwidth_limit"]; } - self::setBandwidthLimit($val); + self::setBandwidthLimit($bandwidthLimit); } - return $val; + return $bandwidthLimit; } public static function setBandwidthLimit($value) {