Fixed another set of php undefined warnings.