MyBB Community Forums

Full Version: Inducing PHP Warning in User management
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
GET request to
./admin/index.php?module=user-users&action=inline_edit
causes
Warning [2] Invalid argument supplied for foreach() - Line: 763 - File: ./admin/inc/class_page.php


  1. https://github.com/mybb/mybb/blob/featur...hp#L21-L46
    $sub_tabs is not being set for GET ?action=inline_edit, which defaults to the user view later
  2. https://github.com/mybb/mybb/blob/featur...2386-L2391
    The inline_edit action defaults to the users view
  3. https://github.com/mybb/mybb/blob/featur....php#L3012
    The users view tries to output the navigation tabs
  4. https://github.com/mybb/mybb/blob/featur...e.php#L763
    undefined $sub_tabs generates an error
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/2064

Thanks for contributing to MyBB!

Regards,
The MyBB Group