fix more php5.3 notices
Merge pull request #812 from dlobo/NoticeFixes

fix more php5.3 notices