if ($threadedmode == 0) {
// show only threads with attachments if ($_REQUEST['attachments'] == 1) { $attachsql = 'AND post.attach <> 0'; $attachwhere = true; } else { $attachsql = ''; $attachwhere = false; }
WHERE threadid = $threadid AND visible = 1 $delthreadlimit
$attachsql
WHERE threadid = $threadid AND visible = 1
$postids = "post.postid IN (0" . $ids . ")";
if (empty($ids) && $attachwhere) { eval(print_standard_error('error_sorry_no_attachments')); }
Sorry, this thread doesn't contain any attachments.
Show Your Support