MyBB Community Forums

Full Version: [F] Copy Forum issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, All,

This is reported before but it seems that still present in MyBB beta 2.
When copy settings from src to target.
It should not also copy the last poster, last postid etc..

The attached file should be fixed the issue. But may break code convetion.



Thanks,
Blueray,
Your fix is wrong

You don't need to loop through them individually:

unset($new_forum['fid'], $new_forum['threads'], $new_forum['posts'], $new_forum['lastpost'], $new_forum['lastposter'], $new_forum['lastposteruid'], $new_forum['lastposttid'], $new_forum['lastpostsubject'], $new_forum['unapprovedthreads'], $new_forum['unapprovedposts']);

http://php.net/unset
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.
Yes, Thanks,

I have forgotten that support varargs.