Fixed typo

There's a typo on the error variable that causes some PHP errors
Merge pull request #4 from nlemoine/master

Fixed typo