public static function verify_thread($thread_id) { if (isnum($thread_id)) { return (bool) dbcount("('forum_id')", DB_FORUM_THREADS, "thread_id='" . $thread_id . "'") ? TRUE : FALSE; } return FALSE; }