mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
Bugtracker #3990 - admins couldn't moderate posts after another bug fix
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_post.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_post.php,v $
|
||||||
| $Revision: 1.6 $
|
| $Revision: 1.7 $
|
||||||
| $Date: 2007-05-28 20:36:15 $
|
| $Date: 2007-06-21 19:37:13 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -439,7 +439,7 @@ if (!$FORUMPOST)
|
|||||||
{
|
{
|
||||||
if (is_readable(THEME."forum_post_template.php"))
|
if (is_readable(THEME."forum_post_template.php"))
|
||||||
{
|
{
|
||||||
include_once(THEME."forum_post_template.php");
|
include_once(THEME."forum_post_template.php");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -462,6 +462,9 @@ else if($action == "nt" && !$sact && !$sql -> db_Select("forum", "*", "forum_id=
|
|||||||
}
|
}
|
||||||
else
|
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();
|
$fpr = $sql -> db_Fetch();
|
||||||
if(!check_class($fpr['forum_postclass']))
|
if(!check_class($fpr['forum_postclass']))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user