public function DefaultRolesWarning() {
      // Check to see if there are no default roles for guests or members.
      $DefaultRolesWarning = FALSE;
      $DefaultRoles = C('Garden.Registration.DefaultRoles');
      if (!is_array($DefaultRoles) || count($DefaultRoles) == 0) {
         $DefaultRolesWarning = TRUE;
      } elseif (!C('Garden.Registration.ApplicantRoleID') && C('Garden.Registration.Method') == 'Approval') {
         $DefaultRolesWarning = TRUE;
      } else {
         $RoleModel = new RoleModel();
         $GuestRoles = $RoleModel->GetByUserID(0);
         if($GuestRoles->NumRows() == 0)
            $DefaultRolesWarning = TRUE;
      }

      if ($DefaultRolesWarning) {
         echo '<div class="Messages Errors"><ul><li>',
            sprintf(T('No default roles.', 'You don\'t have your default roles set up. To correct this problem click %s.'),
            Anchor(T('here'), 'dashboard/role/defaultroles')),
            '</div>';
      }
   }