From: Sam White Date: Sun, 25 Feb 2024 14:09:08 +0000 (-0700) Subject: Fix email CSV generation. X-Git-Url: https://git.dalvak.com/public/?a=commitdiff_plain;h=37ee7e7c4d0c3c9b242ca6ac153f6bfde392e687;p=ycra.git Fix email CSV generation. --- 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"');