core/domain/services/graphql/data/mutations/DatetimeMutation.php 1 location
|
@@ 53-55 (lines=3) @@
|
| 50 |
|
$args['DTT_EVT_start'] = new DateTime(sanitize_text_field($input['startDate'])); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if (! empty($input['endDate'])) { |
| 54 |
|
$args['DTT_EVT_end'] = new DateTime(sanitize_text_field($input['endDate'])); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
if (! empty($input['tickets'])) { |
| 58 |
|
$args['tickets'] = array_map('sanitize_text_field', (array) $input['tickets']); |
core/domain/services/graphql/data/mutations/TicketMutation.php 1 location
|
@@ 58-60 (lines=3) @@
|
| 55 |
|
$args['TKT_start_date'] = new DateTime(sanitize_text_field($input['startDate'])); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
if (! empty($input['endDate'])) { |
| 59 |
|
$args['TKT_end_date'] = new DateTime(sanitize_text_field($input['endDate'])); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
if (! empty($input['datetimes'])) { |
| 63 |
|
$args['datetimes'] = array_map('sanitize_text_field', (array) $input['datetimes']); |