Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

InterCom_userapi_createhook wrong return value #6

Closed
hvorragend opened this issue Aug 18, 2011 · 0 comments
Closed

InterCom_userapi_createhook wrong return value #6

hvorragend opened this issue Aug 18, 2011 · 0 comments
Milestone

Comments

@hvorragend
Copy link
Member

bug description

InterCom?_userapi_createhook function returns wrong value
at the end of the function there is

return true;

bug analysis

in the pnModCallHooks function the hokks are called sequentiell and the return value (extravalue [the name of the module]) from one hook is put into the next hook as arg value.
fix recommendation

the return value must be

return $args['extrainfo'];

ccandreva added a commit to ccandreva/InterCom that referenced this issue Jun 9, 2012
hvorragend added a commit that referenced this issue Jun 11, 2012
Convert new user PM to Events, refs issue #6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant