Fixed PHP warning
Fixed PHP warnings