$value) { if (in_array($key, $use_data)) { $post_data[$key] = $value; } }; $post_data['amount_reduced'] = str_replace(',', '.', $_POST['amount_reduced']); $post_data['amount_default'] = str_replace(',', '.', $_POST['amount_default']); $post_data['amount_social'] = str_replace(',', '.', $_POST['amount_social']); $post_data['contributing_tribes'] = serialize( explode(PHP_EOL, $post_data['contributing_tribes'] ) ); $dbHandler->updateRows( 'kompass_veranstaltungen_index', $post_data, ['id' => $_REQUEST['event-id']] ); kompass_print_message_box(__('Event data updated successfull.', BDP_LV_PLUGIN_SLUG)); new EditEvent(); } }