notice fixes
Merge pull request #950 from deepak-srivastava/hr

php 5.4, notice fixes