Okay, I removed the extra bracket and the break. The code looks like:
// Start Ultimate Points
$sql = 'SELECT points_received, poster_id
FROM ' . POSTS_TABLE . '
WHERE post_id = ' . $data['post_id'];
$result = $db->sql_query_limit($sql, 1);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if ( $config['points_enable'] && $user->data['user_id'] == $row['poster_id'] )
{
$sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - " . $row['points_received'] . " WHERE user_id = '" . $row['poster_id'] . "'";
$db->sql_query($sql);
$sql = "UPDATE " . POSTS_TABLE . " SET points_received = points_received - " . $row['points_received'] . " WHERE post_id = '" . $data['post_id'] . "'";
$db->sql_query($sql);
$ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($data['message']));
}
// End Ultimate Points
$sql_data[postS_TABLE]['sql']['post_text'] = $data['message'];
}
$post_approved = $sql_data[postS_TABLE]['sql']['post_approved'];
$topic_row = array();
But now I get: