MantisBT: master 04bf9d62

Author Committer Branch Timestamp Parent
dregad dregad master 2012-01-01 12:03 master 94432587
Changeset

Fix undefined variable notice in print_manage_menu()

When the manage_proj_page.php is called for a user with minimal rights
(e.g. a reporter granted manager role on a single project), the
print_manage_menu() function issues a couple of messages (depending on
$g_display_errors settings):

SYSTEM NOTICE: Undefined variable: t_pages
SYSTEM WARNING: Invalid argument supplied for foreach()

This commit prevents these errors by initializing $t_pages to an empty
array.

mod - core/html_api.php Diff File