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

fix more php5.3 notices