Merge pull request #124 from sitilge/master

Password reset  - fix invalid DB query (double backtick)
pull/121/head
David Goodwin 7 years ago committed by GitHub
commit 772a882c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,7 +63,7 @@ if ($_SERVER['REQUEST_METHOD'] === "POST") {
if ($token !== false) {
$table = table_by_key($context === 'users' ? 'mailbox' : 'admin');
$result = db_query("SELECT * FROM `$table` WHERE username='$tUsername'");
$result = db_query("SELECT * FROM $table WHERE username='$tUsername'");
$row = db_array($result['result']);
$email_other = trim($row['email_other']);

Loading…
Cancel
Save