diff --git a/modules/rooms_booking_manager/rooms_booking_manager.module b/modules/rooms_booking_manager/rooms_booking_manager.module index 86288b5b1e7a6b041e5a818fd017708de9c2ba9a..b3018c2dd7e0dc57cc222ce026dcae9d243e2545 100644 --- a/modules/rooms_booking_manager/rooms_booking_manager.module +++ b/modules/rooms_booking_manager/rooms_booking_manager.module @@ -1557,12 +1557,12 @@ function rooms_booking_manager_price_apply($line_item, $name) { if ($line_item->rooms_booking_number_people[LANGUAGE_NONE][0]['value'] == 1) { $price_modifiers['single'] = array('#type' => ROOMS_PRICE_SINGLE_OCCUPANCY); } - - if ($line_item->rooms_booking_number_people[LANGUAGE_NONE][1]['value'] > 0) { + + if ($line_item->rooms_booking_number_people[LANGUAGE_NONE][0]['value'] > 0) { $price_modifiers['children'] = array( '#type' => ROOMS_DYNAMIC_MODIFIER, '#op_type' => ROOMS_ADD, - '#amount' => $unit->cot_surcharge * ($this->start_date->diff($this->end_date)->days + 1), + '#amount' => $unit->cot_surcharge * ($start_date->diff($end_date)->days + 1), ); }