original_string: protected function get_maildigest($forumid) {
          $maildigest = -1;
  
          if (isset($this->forumdigesttypes[$forumid])) {
              $maildigest = $this->forumdigesttypes[$forumid];
          }
  
          if ($maildigest === -1 && !empty($this->recipient->maildigest)) {
              $maildigest = $this->recipient->maildigest;
          }
  
          if ($maildigest === -1) {
              // There is no maildigest type right now.
              $maildigest = 1;
          }
  
          return $maildigest;
      }
code: protected function get_maildigest($forumid) {
          $maildigest = -1;
  
          if (isset($this->forumdigesttypes[$forumid])) {
              $maildigest = $this->forumdigesttypes[$forumid];
          }
  
          if ($maildigest === -1 && !empty($this->recipient->maildigest)) {
              $maildigest = $this->recipient->maildigest;
          }
  
          if ($maildigest === -1) {
              // There is no maildigest type right now.
              $maildigest = 1;
          }
  
          return $maildigest;
      }
code_tokens: protected function get_maildigest ( $ forumid ) { $ maildigest = - 1 ; if ( isset ( $ this -> forumdigesttypes [ $ forumid ] ) ) { $ maildigest = $ this -> forumdigesttypes [ $ forumid ] ; } if ( $ maildigest === - 1 && ! empty ( $ this -> recipient -> maildigest ) ) { $ maildigest = $ this -> recipient -> maildigest ; } if ( $ maildigest === - 1 ) { // There is no maildigest type right now. $ maildigest = 1 ; } return $ maildigest ; }
docstring: Get the forum digest type for the specified forum, failing back to
  the default setting for the current user if not specified.
  
  @param   int     $forumid
  @return  int
docstring_tokens: Get the forum digest type for the specified forum failing back to the default setting for the current user if not specified .