From f826d65ac8643464ab8892eab68c10690256f76e Mon Sep 17 00:00:00 2001 From: e107steved Date: Thu, 21 Jun 2007 19:37:13 +0000 Subject: [PATCH] Bugtracker #3990 - admins couldn't moderate posts after another bug fix --- e107_plugins/forum/forum_post.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index 8879703b4..791a8ca35 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_post.php,v $ -| $Revision: 1.6 $ -| $Date: 2007-05-28 20:36:15 $ +| $Revision: 1.7 $ +| $Date: 2007-06-21 19:37:13 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -439,7 +439,7 @@ if (!$FORUMPOST) { if (is_readable(THEME."forum_post_template.php")) { - include_once(THEME."forum_post_template.php"); + include_once(THEME."forum_post_template.php"); } else { @@ -462,6 +462,9 @@ else if($action == "nt" && !$sact && !$sql -> db_Select("forum", "*", "forum_id= } else { + // DB access should pass - after all, the thread should exist + $sql->db_Select_gen("SELECT t.*, p.forum_postclass FROM #forum_t AS t + LEFT JOIN #forum AS p ON t.thread_forum_id=p.forum_id WHERE thread_id='{$id}'"); $fpr = $sql -> db_Fetch(); if(!check_class($fpr['forum_postclass'])) {