Browse Source

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

pull/40/head
ctrlcctrlv 11 years ago
parent
commit
52df2bd5fd
  1. 7
      post.php

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

Loading…
Cancel
Save