fix remainder of php errors
Merge pull request #1 from pcarenza/master

fix rest of php errors