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:
parent
f94be07d14
commit
fafe9a0257
@ -138,7 +138,7 @@ class ReportQueries {
|
|||||||
* Get the report with the given id. DOES NOT PERFORM VALIDITY CHECK.
|
* Get the report with the given id. DOES NOT PERFORM VALIDITY CHECK.
|
||||||
*
|
*
|
||||||
* @param int $id The id of the report to fetch.
|
* @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 {
|
public function getReportById(int $id): ?array {
|
||||||
$query = $this->pdo->prepare('SELECT `board`, `ip`, `post` FROM `reports` WHERE `id` = :id');
|
$query = $this->pdo->prepare('SELECT `board`, `ip`, `post` FROM `reports` WHERE `id` = :id');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user