MyBB Community Forums
[Pushed] $groupperms not always set in forum_permissions() - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Pushed (https://community.mybb.com/forum-183.html)
+----- Thread: [Pushed] $groupperms not always set in forum_permissions() (/thread-171796.html)



$groupperms not always set in forum_permissions() - Devilshakerz - 2015-06-11

The $groupperms variable is defined and used in separate, parallel if conditions which may result in passing an undefined variable to the fetch_forum_permissions() function.

defined:
https://github.com/mybb/mybb/blob/feature/inc/functions.php#L1315
https://github.com/mybb/mybb/blob/feature/inc/functions.php#L1326

used:
https://github.com/mybb/mybb/blob/feature/inc/functions.php#L1349
https://github.com/mybb/mybb/blob/feature/inc/functions.php#L1359


RE: $groupperms not always set in forum_permissions() - Jones H - 2015-06-11

There are thousands of cases like this Wink Especially n functions.php


RE: $groupperms not always set in forum_permissions() - Jones H - 2015-07-02

Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/2123

Thanks for contributing to MyBB!

Regards,
The MyBB Group