From 83cf11149b2c074ad849e0d705d57987e5e107ed Mon Sep 17 00:00:00 2001 From: Krombel Date: Fri, 23 Feb 2018 19:25:30 +0100 Subject: [PATCH] fix for cron.php --- cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.php b/cron.php index 4caedad..f0ce4ea 100644 --- a/cron.php +++ b/cron.php @@ -31,7 +31,7 @@ foreach ($db->query($sql) as $row) { $row["verify_url"]); if ($success) { - $db->exec("UPDATE registrations SET state = " . RegisterState::PendingEmailVerify) + $db->exec("UPDATE registrations SET state = " . RegisterState::PendingEmailVerify . " WHERE id = " . $row["id"] . ";"); } else { throw new Exception("Could not send mail to ".$row["first_name"]." ".$row["last_name"]."(".$row["id"].")");