Missing variable test for quality, so i set a default value
Finally, just a isset test seems enough
Merge pull request #24 from jbjanot/master

Quality variable test, awesome :)