Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cost = 0;
- foreach ( array('lodging','local_transport','transport','other') as $cost) {
- $costField = $this->getField($cost);
- if (!$costField instanceof I2CE_FormField_INT) {
- I2CE::raiseError("Field $cost is not an INT");
- continue;
- }
- $cost += $this->inflateCosts($year_offset,max(0,$costField->getValue());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement