MantisBT: master-2.2 5bd51cc9

Author Committer Branch Timestamp Parent
dregad dregad master-2.2 2017-03-01 07:49 master-2.2 75ef0783
Affected Issues  0022442: System error when opening Print reports
Changeset

Fix print page error when cookie not set

When the VIEW_ALL_COOKIE is not set or blank, an attempt to display
print_all_bug_page.php will trigger a system error: 'Argument 1 passed
to filter_get_visible_sort_properties_array() must be an array, null
given'.

This is due to the filter ($t_filter_cookie_arr) not being initialized
in this case, leading to an error as it's defaulted to NULL while the
filter_get_visible_sort_properties_array() function expects an array.

Use a default filter when the cookie is not set or empty.

Fixes 0022442

mod - print_all_bug_page.php Diff File