Try this:
Find from in ./inlinemod.php:
To the next 'break;' statement.
Replace all that with:
PHP Code:
case 'merge':
if (!can_moderate($threadinfo['forumid'], 'canmanagethreads'))
{
print_no_permission();
}
if (!is_array($vars['threads']) OR count($vars['threads']) < 2)
{
eval(print_standard_error('error_invalidid'));
}
if (empty($_POST['do']))
{
define('PRINT_TPL', 'inline_merge_thread');
}
else
{
if ($_POST['title'])
{
toss_cookies();
$sqlthreads = implode(', ', $vars['threads']);
$firstpost = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "post WHERE threadid IN ($sqlthreads) ORDER BY dateline ASC");
// sort out poll crap
$threadsortdata = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "thread WHERE threadid IN ($sqlthreads) ORDER BY dateline ASC");
$threadopen = 1;
$threadsticky = 0;
while ($threadsort = $DB_site->fetch_array($threadsortdata))
{
if (!$firstthread)
{
$firstthread = $threadsort['threadid'];
}
else
{
$mergethreads[] = $threadsort['threadid'];
}
if ($threadsort['pollid'])
{
eval(standard_error('The threads you specified to merge have a poll(s). You can not use inline moderation for this type of merge. Sorry!'));
}
if (!$threadsort['visible'] OR $threadsort['isdeleted'])
{
eval(standard_error('You can not merge invisible or deleted threads.'));
}
// if any thread is sticky or closed, then the new thread is
if ($threadsort['sticky'])
{
$threadsticky = 1;
}
if (!$threadsort['open'])
{
$threadopen = 0;
}
$votenum += $threadsort['votenum'];
$votetotal += $threadsort['votetotal'];
$views += $threadsort['views'];
$rebuildposts[] = $threadsort['firstpostid'];
}
$isqlthreads = implode(', ', $mergethreads);
// post updates...
$DB_site->query("UPDATE " . TABLE_PREFIX . "post SET threadid = $firstthread WHERE threadid IN ($sqlthreads)");
// set post parentids
$DB_site->query("UPDATE " . TABLE_PREFIX . "post SET parentid = $firstpost[postid] WHERE threadid = $firstthread AND postid <> $firstpost[postid] AND parentid IN (" . implode(', ', $rebuildposts) . ")");
// update new thread
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET title = '" . addslashes(htmlspecialchars_uni($_POST['title'])) . "', views = $views, open = $threadopen, sticky = $threadsticky, iconid = 0, votenum = $votenum, votetotal = $votetotal WHERE threadid = $firstthread");
// remove old threads
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "thread WHERE threadid IN ($isqlthreads)");
// thread ratings
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "threadrate WHERE threadid IN ($isqlthreads)");
// subscriptions
$DB_site->query("UPDATE " . TABLE_PREFIX . "subscribethread SET threadid = $firstthread WHERE threadid IN ($isqlthreads)");
// lots-o-updating
foreach ($rebuildposts AS $postid)
{
delete_post_index($postid);
build_post_index($postid, $vars['forum']);
}
build_thread_counters($firstthread);
build_forum_counters($vars['forum']['forumid']);
$url = "showthread.php?$session[sessionurl]t=$firstthread&mod=1";
eval(print_standard_redirect('redirect_mergethread'));
}
else
{
eval(standard_error('You did not specify a title!'));
}
}
break;
I hope that fixes it. Let me know

.