Fixed syntax errors.

Thanks goes to BobRay (http://forums.modx.com/thread/85945/php-syntax-errors-in-core-files-of-2-2-8#dis-post-473819)