Correcting for php warning and notice errs.