Take good care of php notices
Merge pull request #1 from ramlev/master

Take good care of php notices