MantisBT: master a7098970

Author Committer Branch Timestamp Parent
dregad dregad master 2019-08-03 08:56:37 master fd98a500
Affected Issues  0025953: Missing an API function to check if a plugin event has been declared
Changeset

New event_is_declared() function

Note: use isset() instead of array_key_exists() as discussed in PR
https://github.com/mantisbt/mantisbt/pull/1534#discussion_r310346891

Replace usage of isset( $g_event_cache[...] ) elsewhere in event API,
by calls to the new function.

Fixes 0025953

mod - core/event_api.php Diff File