forked from leftypol/leftypol
Critical bug: users could not report OP posts, only replies
This commit is contained in:
parent
8b71029b55
commit
52df2bd5fd
1 changed files with 6 additions and 1 deletions
5
post.php
5
post.php
|
@ -118,6 +118,11 @@ if (isset($_POST['delete'])) {
|
|||
|
||||
$thread = $query->fetchColumn();
|
||||
|
||||
// If they are not reporting a reply, report the OP.
|
||||
if (!$thread) {
|
||||
$thread = $id;
|
||||
}
|
||||
|
||||
if ($thread) {
|
||||
if ($config['syslog'])
|
||||
_syslog(LOG_INFO, 'Reported post: ' .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue