cleaned up some php code that was throwing warnings in the apache
errors.log fiel