$tpcarray = $db->get_one("SELECT t.fid,t.locked,t.ifcheck,t.author,t.authorid,t.postdate,t.ifmail,t.pollid ,t.subject,t.type $S_sql FROM pw_threads t $J_sql WHERE t.tid='$tid'");
复制代码
替换为
$tpcarray = $db->get_one("SELECT t.fid,t.locked,t.ifcheck,t.author,t.authorid,t.postdate,t.ifmail,t.pollid ,t.subject,t.type,t.lastpost $S_sql FROM pw_threads t $J_sql WHERE t.tid='$tid'");
复制代码
找到
$pid = $db->insert_id();
if($ifcheck==1){
复制代码
在后面加上
if ($notup) $timestamp=$tpcarray['lastpost'];