Fix email CSV generation.
authorSam White <webmaster@ycra.org.uk>
Sun, 25 Feb 2024 14:09:08 +0000 (07:09 -0700)
committerSam White <webmaster@ycra.org.uk>
Sun, 25 Feb 2024 14:09:08 +0000 (07:09 -0700)
public_html/members.php

index e2ef47c880197cf477c77d65cbc84b2d3fbe4318..f6906999adcb4dfbad5998c69bc7dd3f03fc657a 100644 (file)
@@ -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"');