mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Critical bug: users could not report OP posts, only replies
This commit is contained in:
parent
8b71029b55
commit
52df2bd5fd
7
post.php
7
post.php
@ -117,7 +117,12 @@ if (isset($_POST['delete'])) {
|
|||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
|
|
||||||
$thread = $query->fetchColumn();
|
$thread = $query->fetchColumn();
|
||||||
|
|
||||||
|
// If they are not reporting a reply, report the OP.
|
||||||
|
if (!$thread) {
|
||||||
|
$thread = $id;
|
||||||
|
}
|
||||||
|
|
||||||
if ($thread) {
|
if ($thread) {
|
||||||
if ($config['syslog'])
|
if ($config['syslog'])
|
||||||
_syslog(LOG_INFO, 'Reported post: ' .
|
_syslog(LOG_INFO, 'Reported post: ' .
|
||||||
|
Loading…
Reference in New Issue
Block a user