ReportQueries.php: fix SQL syntax

This commit is contained in:
Zankaria 2025-11-14 23:49:51 +01:00
parent 681a2e4796
commit 5cacee6d1d

View file

@ -142,7 +142,7 @@ class ReportQueries {
* @return ?array An array of the given report with the `board` and `ip` fields. Null if no such report exists.
*/
public function getReportById(int $id): ?array {
$query = $this->pdo->prepare('SELECT `board`, `ip` FROM ``reports`` WHERE `id` = :id');
$query = $this->pdo->prepare('SELECT `board`, `ip` FROM `reports` WHERE `id` = :id');
$query->bindValue(':id', $id);
$query->execute();