Weird syntax fix for PHP 5.3
This commit is contained in:
parent
728fccc2fe
commit
cd26671627
|
@ -13,11 +13,13 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form
|
||||||
//unset($productTypes[$key]);
|
//unset($productTypes[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$currentPlanProduct = BillingController::getClientCurrentAirtimeProduct();
|
||||||
|
$currentPlanProductId = $currentPlanProduct["pid"];
|
||||||
$pid = new Zend_Form_Element_Radio('newproductid');
|
$pid = new Zend_Form_Element_Radio('newproductid');
|
||||||
$pid->setLabel(_('Plan type:'))
|
$pid->setLabel(_('Plan type:'))
|
||||||
->setMultiOptions($productTypes)
|
->setMultiOptions($productTypes)
|
||||||
->setRequired(true)
|
->setRequired(true)
|
||||||
->setValue(BillingController::getClientCurrentAirtimeProduct()["pid"]);
|
->setValue($currentPlanProductId);
|
||||||
$this->addElement($pid);
|
$this->addElement($pid);
|
||||||
|
|
||||||
Logging::info(BillingController::getClientCurrentAirtimeProduct());
|
Logging::info(BillingController::getClientCurrentAirtimeProduct());
|
||||||
|
|
Loading…
Reference in New Issue