langerheiko / ManageUsergroups

Manage Usergroups for MantisBT
3 stars 5 forks source link

Fix signal event error #5

Closed realitix closed 7 years ago

realitix commented 7 years ago

When an error occurs, the MantisBT error handler clears all callbacks (EVENT_GROUP_ACCESS_HAS_BUG_LEVEL) with event_clear_callbacks().

When callbacks are cleared, event_signal returns the second parameter that we have given to it. After that, $p_user_id becomes an array and we don't want that so we put back the initial $p_user_id in it.

This patch fixes issue #3