Handle unknown plan types more gracefully with the bandwidth limit
This commit is contained in:
parent
e3b0a93ebb
commit
2594105a5e
|
@ -1598,7 +1598,10 @@ class Application_Model_Preference
|
||||||
// Set and return the plan defaults
|
// Set and return the plan defaults
|
||||||
// TODO: remove this once all existing customers have this pref set
|
// TODO: remove this once all existing customers have this pref set
|
||||||
$planType = self::GetPlanLevel();
|
$planType = self::GetPlanLevel();
|
||||||
$val = Billing::$PLAN_TYPE_DEFAULTS[$planType]["bandwidth_limit"];
|
$val = "starter";
|
||||||
|
if (isset(Billing::$PLAN_TYPE_DEFAULTS[$planType])) {
|
||||||
|
$val = Billing::$PLAN_TYPE_DEFAULTS[$planType]["bandwidth_limit"];
|
||||||
|
}
|
||||||
self::setBandwidthLimit($val);
|
self::setBandwidthLimit($val);
|
||||||
}
|
}
|
||||||
return $val;
|
return $val;
|
||||||
|
|
Loading…
Reference in New Issue