Show your code (including how you call the function)
Type: Posts; User: vart
Show your code (including how you call the function)
So, do you have a question?
Show your code where you are calling the function.
I do not have such an error compiling this function and running it in the test application.
Could you post minimum compilable and runnable test that illustrates the problem?
As a side note -...