ok this is one of another bug in editpost.php, i post just the correct code

:
PHP Code:
// doublepost = no count hack
$lastpost = $DB_site->query_first("SELECT * FROM post WHERE threadid = '$threadid' AND postid<$postid ORDER BY postid DESC");
if($lastpost[userid]!=$bbuserinfo[userid] || ($postinfo[dateline]-$lastpost[dateline])>3600 || $postinfo[attachmentid]) {
deletepost($postid,$foruminfo[countposts],$threadinfo[threadid]);
} else {
deletepost($postid,$countposts=0,$threadinfo[threadid]);
}
// end doublepost = no count hack
ok i think with this editpost.php should work perfect now...