- 'start_date' => generateDateTime($content['start_time'], '2'),
- 'end_date' => generateDateTime($content['end_time'] , '2'),
- 'active_lnk' => translateYesNo($content['is_active']),
- 'notify_lnk' => translateYesNo($content['send_notify']),
- 'auto_lnk' => translateYesNo($content['auto_add_new_user']),
- 'notified' => translateYesNo($content['notified']),
- 'prices_cnt' => translateComma(GET_TOTAL_DATA($content['id'], 'rallye_prices', 'id', 'rallye_id', true)),
- 'descr' => COMPILE_CODE($content['descr']),
- 'min_users' => $content['min_users'],
- 'min_prices' => $content['min_prices'],
+ 'start_date' => generateDateTime($data['start_time'], 2),
+ 'end_date' => generateDateTime($data['end_time'] , 2),
+ 'active_lnk' => translateYesNo($data['is_active']),
+ 'notify_lnk' => translateYesNo($data['send_notify']),
+ 'auto_lnk' => translateYesNo($data['auto_add_new_user']),
+ 'notified' => translateYesNo($data['notified']),
+ 'prices_cnt' => translateComma(countSumTotalData($data['id'], 'rallye_prices', 'id', 'rallye_id', true)),
+ 'descr' => $data['descr'],
+ 'min_users' => $data['min_users'],
+ 'min_prices' => $data['min_prices'],