Consistent use of return , payment refund handling
This commit is contained in:
@@ -33,13 +33,13 @@ class Model_Adsl_Supplier extends ORM_OSB {
|
||||
* Return a list of plans that we provide by this supplier
|
||||
*/
|
||||
public function adsl_plans($active=TRUE) {
|
||||
$return = array();
|
||||
$result = array();
|
||||
|
||||
foreach ($this->plans($active)->find_all() as $po)
|
||||
foreach ($po->adsl_plan->find_all() as $apo)
|
||||
$return[$apo->id] = $apo;
|
||||
$result[$apo->id] = $apo;
|
||||
|
||||
return $return;
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user