Hello Petnax,

Please replace your getCategory function to:

Code:
Only registered members can view the code.