From 37ee7e7c4d0c3c9b242ca6ac153f6bfde392e687 Mon Sep 17 00:00:00 2001 From: Sam White Date: Sun, 25 Feb 2024 07:09:08 -0700 Subject: [PATCH] Fix email CSV generation. --- public_html/members.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/members.php b/public_html/members.php index e2ef47c..f690699 100644 --- a/public_html/members.php +++ b/public_html/members.php @@ -70,7 +70,7 @@ function content() { } if (!empty($_GET['csv']) && $_GET['csv'] == 'emails' && check_logged_in()) { - $result = run_sql('SELECT email_address FROM members GROUP BY(email_address) ORDER BY id DESC'); + $result = run_sql('SELECT email_address FROM members GROUP BY(email_address)'); header('Content-Type: text/csv'); header('Content-Disposition: inline; filename="ycra-member-emails.csv"'); -- 2.25.1