PHP notice fixes
Merge pull request #150 from FelixOnline/php_notice_fixes

PHP notice fixes