query("UPDATE forums_topics SET StickyPostID = 0 WHERE ID = ".$ThreadID); } else { $DB->query("UPDATE forums_topics SET StickyPostID = ".$PostID." WHERE ID = ".$ThreadID); } $Cache->delete_value('thread_'.$ThreadID.'_info'); header('Location: forums.php?action=viewthread&threadid='.$ThreadID);