function &current()
 {
     $temp = parent::current();
     /* Cache this forum in the session */
     cache_forum($temp);
     /* Set a nice representation of what level we're on */
     $temp['indent_level'] = @str_repeat('   ', $temp['row_level'] - 1);
     /* Should we free the result? */
     if ($this->key == sizeof($this->data)) {
         $this->result->freeResult();
     }
     /* Return the formatted forum info */
     return $temp;
 }
 function current()
 {
     $temp = parent::current();
     /* Cache this forum in the session */
     cache_forum($temp);
     /* Set a nice representation of what level we're on */
     $temp['indent_level'] = @str_repeat('   ', $temp['row_level'] - 1);
     /* Return the formatted forum info */
     return $temp;
 }
 function &current()
 {
     $temp = parent::current();
     cache_forum($temp);
     if ($temp['row_right'] - $temp['row_left'] - 1 > 0) {
         $query_params = $this->query_params['info'] . $this->query_params['forum'];
         $temp['forums'] =& new ForumsIterator("SELECT {$query_params} FROM " . INFO . " i LEFT JOIN " . FORUMS . " f ON f.forum_id = i.id WHERE i.row_left > " . $temp['row_left'] . " AND i.row_right < " . $temp['row_right'] . " AND i.row_type = " . FORUM . " AND i.parent_id = f.category_id ORDER BY i.row_order ASC");
     }
     /* Should we free the result? */
     if ($this->row == $this->size - 1) {
         $this->result->freeResult();
     }
     return $temp;
 }