MyBB Community Forums

Full Version: [F] [phpBB2] Poll Votes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In boards/phpbb2/pollvotes.php, there is

function convert_data($data)
	{
		$insert_data = array();
		
		// phpBB 2 values
		$insert_pollvote['uid'] = $this->get_import->uid($pollvote['vote_user_id']);
		$insert_pollvote['dateline'] = TIME_NOW;
		$insert_pollvote['pid'] = $this->get_import->pollid($pollvote['vote_id']);
		
		return $insert_data;
	}

Which should be I think
function convert_data($data)
	{
		$insert_data = array();
		
		// phpBB 2 values
		$insert_data['uid'] = $this->get_import->uid($data['vote_user_id']);
		$insert_data['dateline'] = TIME_NOW;
		$insert_data['pid'] = $this->get_import->pollid($data['vote_id']);
		
		return $insert_data;
	}

The problem is poll voting data isn't correct. There is nothing in the rows inserted
This bug has been fixed in the latest version of the MyBB Merge System.

Please note the latest code is not live on the site or for download. An update for the MyBB Merge System will be released which contains this fix.

With regards,
The MyBB Group