Weird syntax fix for PHP 5.3

This commit is contained in:
Albert Santoni 2014-07-02 12:40:32 -04:00
parent 728fccc2fe
commit cd26671627
1 changed files with 3 additions and 1 deletions

View File

@ -13,11 +13,13 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form
//unset($productTypes[$key]);
}
$currentPlanProduct = BillingController::getClientCurrentAirtimeProduct();
$currentPlanProductId = $currentPlanProduct["pid"];
$pid = new Zend_Form_Element_Radio('newproductid');
$pid->setLabel(_('Plan type:'))
->setMultiOptions($productTypes)
->setRequired(true)
->setValue(BillingController::getClientCurrentAirtimeProduct()["pid"]);
->setValue($currentPlanProductId);
$this->addElement($pid);
Logging::info(BillingController::getClientCurrentAirtimeProduct());