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"].")");