From fafe9a02578f0c8094e94996250da4be7a21623e Mon Sep 17 00:00:00 2001 From: Zankaria Date: Fri, 6 Dec 2024 22:46:24 +0100 Subject: [PATCH] ReportQueries.php: fetch post id --- inc/Data/ReportQueries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Data/ReportQueries.php b/inc/Data/ReportQueries.php index f943ab47..4488a20c 100644 --- a/inc/Data/ReportQueries.php +++ b/inc/Data/ReportQueries.php @@ -138,7 +138,7 @@ class ReportQueries { * Get the report with the given id. DOES NOT PERFORM VALIDITY CHECK. * * @param int $id The id of the report to fetch. - * @return ?array An array of the given report with the `board` and `ip` fields. Null if no such report exists. + * @return ?array An array of the given report with the `board`, `ip` and `post` fields. Null if no such report exists. */ public function getReportById(int $id): ?array { $query = $this->pdo->prepare('SELECT `board`, `ip`, `post` FROM `reports` WHERE `id` = :id');