Merge pull request #124 from sitilge/master

Password reset  - fix invalid DB query (double backtick)
This commit is contained in:
David Goodwin authored and GitHub committed 2018-01-22 13:15:12 +00:00
commit 772a882c74
1 file changed
+1 -1
+1 -1
View File
@@ -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']);