original_string: public static function fetch_discussion_subscription($forumid, $userid = null) {
          self::fill_discussion_subscription_cache($forumid, $userid);
  
          if (!isset(self::$forumdiscussioncache[$userid]) || !isset(self::$forumdiscussioncache[$userid][$forumid])) {
              return array();
          }
  
          return self::$forumdiscussioncache[$userid][$forumid];
      }
code: public static function fetch_discussion_subscription($forumid, $userid = null) {
          self::fill_discussion_subscription_cache($forumid, $userid);
  
          if (!isset(self::$forumdiscussioncache[$userid]) || !isset(self::$forumdiscussioncache[$userid][$forumid])) {
              return array();
          }
  
          return self::$forumdiscussioncache[$userid][$forumid];
      }
code_tokens: public static function fetch_discussion_subscription ( $ forumid , $ userid = null ) { self :: fill_discussion_subscription_cache ( $ forumid , $ userid ) ; if ( ! isset ( self :: $ forumdiscussioncache [ $ userid ] ) || ! isset ( self :: $ forumdiscussioncache [ $ userid ] [ $ forumid ] ) ) { return array ( ) ; } return self :: $ forumdiscussioncache [ $ userid ] [ $ forumid ] ; }
docstring: Retrieve the discussion subscription data for the specified userid and forum.
  
  This is returned as an array of discussions for that forum which contain the preference in a stdClass.
  
  @param int $forumid The forum to retrieve a cache for
  @param int $userid The user ID
  @return array of stdClass objects with one per discussion in the forum.
docstring_tokens: Retrieve the discussion subscription data for the specified userid and forum .