avoid php warnings on optional parameters
Merge pull request #1 from firegate666/master

avoid php warnings on optional parameters