Loading forum/pages/modules/topics.php +1 −1 Original line number Diff line number Diff line Loading @@ -1522,12 +1522,12 @@ class Module_topics if ((!has_privilege(get_member(), 'see_unvalidated')) && (addon_installed('unvalidated')) && ($_postdetails[0]['p_validated'] == 0) && (($_postdetails[0]['p_poster'] != get_member()) || ((is_guest($_postdetails[0]['p_poster'])) && ($_postdetails[0]['p_ip_address'] != get_ip_address())))) { access_denied('I_ERROR'); } } $_topic = $GLOBALS['FORUM_DB']->query_select('f_topics', array('t_pt_to', 't_pt_from', 't_cache_first_title'), array('id' => $_postdetails[0]['p_topic_id']), '', 1); if (!array_key_exists(0, $_topic)) { warn_exit(do_lang_tempcode('MISSING_RESOURCE', 'topic')); } } if (!cns_may_access_topic($_postdetails[0]['p_topic_id'])) { access_denied('I_ERROR'); Loading Loading
forum/pages/modules/topics.php +1 −1 Original line number Diff line number Diff line Loading @@ -1522,12 +1522,12 @@ class Module_topics if ((!has_privilege(get_member(), 'see_unvalidated')) && (addon_installed('unvalidated')) && ($_postdetails[0]['p_validated'] == 0) && (($_postdetails[0]['p_poster'] != get_member()) || ((is_guest($_postdetails[0]['p_poster'])) && ($_postdetails[0]['p_ip_address'] != get_ip_address())))) { access_denied('I_ERROR'); } } $_topic = $GLOBALS['FORUM_DB']->query_select('f_topics', array('t_pt_to', 't_pt_from', 't_cache_first_title'), array('id' => $_postdetails[0]['p_topic_id']), '', 1); if (!array_key_exists(0, $_topic)) { warn_exit(do_lang_tempcode('MISSING_RESOURCE', 'topic')); } } if (!cns_may_access_topic($_postdetails[0]['p_topic_id'])) { access_denied('I_ERROR'); Loading