- $sql = "insert into tt_teams (name, address, currency $lockspec_f, lang $decimal_mark_f $date_format_f $time_format_f $week_start_f $plugins_f $tracking_mode_f $record_type_f)
+ $uncompleted_entries = $fields['uncompleted_entries'];
+ if ($uncompleted_entries !== null) {
+ $uncompleted_entries_f = ', uncompleted_entries';
+ $uncompleted_entries_v = ', ' . (int)$uncompleted_entries;
+ } else {
+ $uncompleted_entries_f = '';
+ $uncompleted_entries_v = '';
+ }
+
+ $workday_hours = $fields['workday_hours'];
+ if ($workday_hours !== null) {
+ $workday_hours_f = ', workday_hours';
+ $workday_hours_v = ', ' . (int)$workday_hours;
+ } else {
+ $workday_hours_f = '';
+ $workday_hours_v = '';
+ }
+
+ $sql = "insert into tt_teams (name, address, currency $lockspec_f, lang $decimal_mark_f $date_format_f $time_format_f $week_start_f $plugins_f $tracking_mode_f $record_type_f $uncompleted_entries_f $workday_hours_f)