Fixed error - location check called incorrectly.
Merge branch 'master' of git://github.com/newicon/nii-core