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