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