From 283bad3b7f7bdef6be23d00ecac3c4df77788a4f Mon Sep 17 00:00:00 2001 From: Moc Date: Thu, 18 Apr 2013 20:26:37 +0200 Subject: [PATCH] Fixing wrongly edited forum_t to forum_thread, used in forum_update --- e107_plugins/forum/forum_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index c929dce40..27470b70e 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -926,7 +926,7 @@ class e107forum $lp_user = 'NULL'; if($updateThreads == true) { - if ($sql2->select('forum_thread', 'thread_id', "thread_forum_id = $id AND thread_parent = 0")) + if ($sql2->select('forum_t', 'thread_id', "thread_forum_id = $id AND thread_parent = 0")) // forum_t used in forum_update { while ($row = $sql2->fetch(MYSQL_ASSOC)) { @@ -1409,7 +1409,7 @@ class e107forum $qry = " SELECT ft.*, fp.thread_name as post_subject, fp.thread_total_replies as replies, u.user_id, u.user_name, f.forum_class - FROM #forum_thread AS ft + FROM #forum_t AS ft LEFT JOIN #forum_thread as fp ON fp.thread_id = ft.thread_parent LEFT JOIN #user as u ON u.user_id = SUBSTRING_INDEX(ft.thread_user,'.',1) LEFT JOIN #forum as f ON f.forum_id = ft.thread_forum_id