Fix invalid DB query (double backtick)

pull/124/head
Martins Eglitis 8 years ago
parent 938e7dcb7d
commit 97f0fa2c3d

@ -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