--fixed for CRM-12275

fixed notice errors.