Please go back and edit your post, select your code and hit the </> button to format your text as code. As it is right now, some characters might be missing. We need to see a fully formatted code to address this issue.
What line shows the error at by the way?
Kf