Saving tribes as array

This commit is contained in:
2024-06-01 11:07:03 +02:00
parent 492d5a0028
commit c1d83d5536
3 changed files with 5 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class CreateEvent {
$post_data['amount_default'] = str_replace(',', '.', $_POST['amount_default']);
$post_data['amount_social'] = str_replace(',', '.', $_POST['amount_social']);
$post_data['contributing_tribes'] = str_replace( PHP_EOL, ',', $post_data['contributing_tribes'] );
$post_data['contributing_tribes'] = serialize( explode(PHP_EOL, $post_data['contributing_tribes'] ) );
$new_event_id = $dbHandler->insertRows(
'kompass_veranstaltungen_index',