1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-02 12:57:35 +01:00

ReportQueries.php: fetch post id

This commit is contained in:
Zankaria 2024-12-06 22:46:24 +01:00
parent f94be07d14
commit fafe9a0257

View File

@ -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');