update to avoid php warnings
Merge pull request #2 from mjatharvest/patch-1

update to avoid php warnings