fixed php warnings
Merge pull request #13 from gondo/patch-1

fixed php warnings