|
@ -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: ' . |
|
|