summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--post.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/post.php b/post.php
index 6a23b64c..98709d97 100644
--- a/post.php
+++ b/post.php
@@ -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: ' .