https://www.icyphoenix.com/viewtopic.php?f=28&t=2310&p=16591#p16591
-----------------------------------
tonyf12
Mon 18 Jun, 2007 15:25

Re: Log Actions MOD
-----------------------------------
A mistake in instructions
[code]$sql = "UPDATE " . TOPICS_TABLE . " 
    SET topic_status = " . TOPIC_UNLOCKED . " 
    WHERE 
        AND 
        AND 
if ( 
{ 
    message_die( 
}[/code]
should be
[code]$sql = "UPDATE " . TOPICS_TABLE . "
SET forum_id = $new_forum_id
WHERE topic_id = $topic_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update old topic', '', __LINE__, __FILE__, $sql);
}[/code]


