if (THIS_SCRIPT == 'showthread'){ if(isset($_GET['t']) && (intval($_GET['t']) != 0)) { $thread_description = $db->query_first("SELECT pagetext FROM " . TABLE_PREFIX . "post WHERE threadid = ". intval($_GET['t']) ." ORDER BY postid ASC LIMIT 1"); $thread_description['pagetext'] = htmlspecialchars_uni($thread_description['pagetext']); }}