Thread:Project:Support desk/How to hide "View History" button for unlogged users?/reply (22)

Make sure that you put the function definition at a place where PHP allows you to define a function.