viewing paste Unknown #51566 | PHP

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
 
        // Are we being requested to hide the specified topic?
        if ($hide_topic)
        {
                // Can't do anything if the board ID is empty, either....
                $user = (int) $user_info['id'];
                if (empty($board))
                        continue;
 
                // Insert the row into the hide_topics table:
                $smcFunc['db_insert']('insert',
                        '{db_prefix}hide_topics',
                        array('id_member' => 'int', 'id_topic' => 'int', 'id_board' => 'int'),
                        array($user, $topic, (int) $board),
                        array('id_member', 'id_topic', 'id_board')
                );
        }
Viewed 202 times, submitted by Guest.