Critical bug: users could not report OP posts, only replies

This commit is contained in:
ctrlcctrlv 2013-08-09 17:53:23 +00:00
parent 8b71029b55
commit 52df2bd5fd

View File

@ -117,7 +117,12 @@ if (isset($_POST['delete'])) {
$query->execute() or error(db_error($query));
$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: ' .