Merge branch 'first_implementation' of gitea.krombel.de:krombel/matrix-register-bot into first_implementation

This commit is contained in:
2018-02-28 20:00:29 +01:00
5 changed files with 9 additions and 21 deletions

View File

@@ -1,6 +1,4 @@
<?php
// This file is meant to do tasks that failed on the first attempt
require_once("config.php");
require_once("mail_templates.php");
require_once("database.php");
@@ -13,7 +11,6 @@ $sql = "SELECT id, first_name, last_name, username, email, state, note, verify_t
. " OR state = " . RegisterState::RegistrationDeclined
. " OR state = " . RegisterState::AllDone . ";";
foreach ($db->query($sql) as $row) {
// will only be executed once
$first_name = $row["first_name"];
$last_name = $row["last_name"];
$username = $row["username"];