From 8cb92952cb524ece399a7a8c440fe80ff7581ae8 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Fri, 19 Jul 2024 11:07:16 +0200 Subject: [PATCH] commas on data will be replaced by spaces when exporting to csv --- endpoints/subscriptions/export.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/endpoints/subscriptions/export.php b/endpoints/subscriptions/export.php index be395acfa..c72f87a27 100644 --- a/endpoints/subscriptions/export.php +++ b/endpoints/subscriptions/export.php @@ -19,13 +19,13 @@ while ($row = $result->fetchArray(SQLITE3_ASSOC)) { $subscriptionDetails = array( - 'Name' => str_replace(',', '', $row['name']), + 'Name' => str_replace(',', ' ', $row['name']), 'Next Payment' => $row['next_payment'], - 'Categpry' => str_replace(',', '', $categories[$row['category_id']]['name']), - 'Payment Method' => str_replace(',', '', $payment_methods[$row['payment_method_id']]['name']), - 'Paid By' => str_replace(',', '', $members[$row['payer_user_id']]['name']), + 'Categpry' => str_replace(',', ' ', $categories[$row['category_id']]['name']), + 'Payment Method' => str_replace(',', ' ', $payment_methods[$row['payment_method_id']]['name']), + 'Paid By' => str_replace(',', ' ', $members[$row['payer_user_id']]['name']), 'Price' => $currencies[$row['currency_id']]['symbol'] . $row['price'], - 'Notes' => str_replace(',', '', $row['notes']), + 'Notes' => str_replace(',', ' ', $row['notes']), 'URL' => $row['url'], 'State' => $row['inactive'] ? 'Disabled' : 'Enabled', 'Notifications' => $row['notify'] ? 'Enabled' : 'Disabled',