Fix to combat no validation with error_reporing(0)
Merge branch 'master' of https://github.com/jehannes/mantisbt