FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Critical error in fudforum?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Critical error in fudforum? [message #26940 is a reply to message #26823] Mon, 22 August 2005 15:25 Go to previous messageGo to previous message
AutoHost is currently offline  AutoHost   United States
Messages: 99
Registered: October 2002
Karma:
Member
Ilia,

Can you tell me if the following is correct, to patch this?

FudForum v2.3.5
tree.php.t
lines 111-122

        FROM
                {SQL_TABLE_PREFIX}msg
                LEFT JOIN {SQL_TABLE_PREFIX}users
                        ON {SQL_TABLE_PREFIX}msg.poster_id={SQL_TABLE_PREFIX}users.id
                LEFT JOIN {SQL_TABLE_PREFIX}avatar
                        ON {SQL_TABLE_PREFIX}users.avatar={SQL_TABLE_PREFIX}avatar.id
                INNER JOIN {SQL_TABLE_PREFIX}thread
                        ON {SQL_TABLE_PREFIX}msg.thread_id={SQL_TABLE_PREFIX}thread.id
                LEFT JOIN {SQL_TABLE_PREFIX}level
                        ON {SQL_TABLE_PREFIX}users.level_id={SQL_TABLE_PREFIX}level.id
        WHERE
                {SQL_TABLE_PREFIX}msg.id=".$mid." AND {SQL_TABLE_PREFIX}msg.approved='Y'");


replaced by

        FROM
                {SQL_TABLE_PREFIX}msg
                LEFT JOIN {SQL_TABLE_PREFIX}users
                        ON {SQL_TABLE_PREFIX}msg.poster_id={SQL_TABLE_PREFIX}users.id
                LEFT JOIN {SQL_TABLE_PREFIX}avatar
                        ON {SQL_TABLE_PREFIX}users.avatar={SQL_TABLE_PREFIX}avatar.id
                INNER JOIN {SQL_TABLE_PREFIX}thread
                        ON {SQL_TABLE_PREFIX}msg.thread_id={SQL_TABLE_PREFIX}thread.id
                LEFT JOIN {SQL_TABLE_PREFIX}level
                        ON {SQL_TABLE_PREFIX}users.level_id={SQL_TABLE_PREFIX}level.id
        WHERE
                {SQL_TABLE_PREFIX}msg.id=".$mid." AND {SQL_TABLE_PREFIX}msg.approved='Y' AND
                        SQL_TABLE_PREFIX}msg.thread_id=".$th"");


[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with pruning topics
Next Topic: V2.7.0RC1 - parse error trying to create forum data dump
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 15:53:55 GMT 2024

Total time taken to generate the page: 0.04234 seconds