Commit ff4219c8 authored by Thomas Löffler's avatar Thomas Löffler

Use correct WHERE statement for exporting members

parent 141f6b69
Pipeline #8647 passed with stages
in 7 minutes and 54 seconds
......@@ -82,7 +82,7 @@ function getAssociationMembers()
$db->query('SET NAMES utf8');
$where = 'email != "" AND hidden=0 AND deleted=0';
$where .= ' AND end_date > UNIX_TIMESTAMP(DATE_SUB(CURDATE(),INTERVAL 1 DAY))';
$where .= ' AND (endtime > UNIX_TIMESTAMP(DATE_SUB(CURDATE(),INTERVAL 1 DAY)) OR endtime = 0)';
$query = 'SELECT `uid`,`email`,`name`,`firstname`,`lastname`,`membership` FROM `tx_t3omembership_domain_model_member` WHERE ' . $where;
$query .= ' ORDER BY email';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment