autoformatting

This commit is contained in:
2018-04-24 15:27:17 +02:00
parent d9e65f4b5d
commit d130ba30c8
7 changed files with 113 additions and 105 deletions

View File

@@ -125,14 +125,14 @@ foreach ($mx_db->query($sql) as $row) {
try {
//cleanup: all finished entries older than one month
$timestamp = date('Y-m-d H:m:s',strtotime("-1 month"));
$timestamp = date('Y-m-d H:m:s', strtotime("-1 month"));
$mx_db->query("DELETE FROM registrations "
. "WHERE request_date < '$timestamp'"
. " AND (state = " . RegisterState::RegistrationDeclined
. " OR state = " . RegisterState::AllDone . " );"
);
//cleanup: all entries which are pending email registration older than two days
$timestamp = date('Y-m-d H:m:s',strtotime("-2 days"));
$timestamp = date('Y-m-d H:m:s', strtotime("-2 days"));
$mx_db->query("DELETE FROM registrations "
. "WHERE request_date < '$timestamp'"
. " AND state = " . RegisterState::PendingEmailVerify . ";"