In a certain condition (from one of my custom modules) actions_list() is invoked twice within one run. There the function isaction() is declared, but as PHP doesn't seem to know about local functions (I'm using PHP 4.3.10) it is declared again globally, leading to an error (can't redeclare function...). The solution seems to be to move the declaration of isaction() outside of actions_list() and renaming it to something less general.

On a closer look the intent of declaring $actions as static is to avoid doing the search twice, but this is not the case. I think I fixed that, too.

CommentFileSizeAuthor
actions_list.patch1.05 KBwiz-1

Comments

jvandyk’s picture

Assigned: Unassigned » jvandyk

Committed. Thanks.

Anonymous’s picture