From: GitHub <no...@gi...> - 2013-02-25 17:03:56
|
Branch: refs/heads/master Home: https://github.com/mantisbt/mantisbt Commit: 957b3c091902599cdb031498b79e1288dfbcfdc3 https://github.com/mantisbt/mantisbt/commit/957b3c091902599cdb031498b79e1288dfbcfdc3 Author: Damien Regad <dam...@me...> Date: 2013-02-25 (Mon, 25 Feb 2013) Changed paths: M core/access_api.php Log Message: ----------- Fix crash when report_bug_threshold=array in access_has_bug_level When displaying a bug for which the user is not the reporter, $g_limit_reporters=ON and the workflow is set so report_bug_threshold is an array, MantisBT crashes with "PHP Fatal error: Unsupported operand types". This is due to use of '+ 1' to indicate that user should have the next higher access level to view the issue. We now use the same logic but within a foreach loop to check against each array element. Fixes #15538 |