MyBB Community Forums

Full Version: [B] PHP Tag Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Whilst testing this I found a problem with the PHP tag... look at this.

if(!$existing_permissions)
{
	$query2 = $db->simple_select("usergroups", "canviewthreads,candlattachments,canratethreads,caneditposts,candeleteposts,candeletethreads,caneditattachments,canvotepolls,cansearch", "gid='{$usergroup['gid']}'", array('limit' => 1));
	$existing_permissions = $db->fetch_array($query2);
}

See 'cande​letethreads' is split onto 2 lines?? In Notepad++ it ads a ? there and this causes an issue, similar things happen in other editors. I'm making a bug report here because I believe it shouldn't be split, people will copy and paste code from PHP tags a lot, bug fixes is a prime example, and this will cause errors. The tag shouldn't split the word.
It's the wordwrap and a known limitation.