MantisBT: master-2.27 437eb123

Author Committer Branch Timestamp Parent
dregad dregad master-2.27 2024-12-03 13:29 master-2.27 d0a7bed6
Affected Issues  0035064: Constant error 500 after deleting user option on adm_config_report.php page.
Changeset

Ensure user in manage_config_cookie exists

If a non-existing user id is specified in the cookie, user_get_row()
returns false, resulting in the subsequent user_get_name_from_row() call
triggering a PHP error as the function expects an array but receives a
bool.

Adding a check for the user id's existence after reading the cookie and
defaulting to ALL_USERS if not found fixes the problem.

Fixes 0035064

mod - adm_config_report.php Diff File