MantisBT: master c593f907

Author Committer Branch Timestamp Parent
dregad dregad master 2014-07-06 09:00 master f0885d9e
Affected Issues  0017494: 'Undefined index: _stats' notice on View Issues page
Changeset

Fix 'Undefined index: _stats' notice in bug API

This is a regression introduced by a change in filter API by commit
5458f7020999317b35f403fa2a0e477d6182ec12. In filter_cache_result(), the
2nd param to bug_cache_database_result() was changed from 'false' to
default (null). Consequently the '_stats' element was no longer present,
triggering the notice.

Problem solved by relying on array_key_exists() instead of is_null() to
check for the '_stats' array element.

Fixes 0017494

mod - core/bug_api.php Diff File