diff --git a/upload/source/class/table/table_forum_forum.php b/upload/source/class/table/table_forum_forum.php index 5bb9071a3a682537c596585a6411aab4e04e7b6d..113050e3cba2a058f5f90b187444570fe0a3621b 100644 --- a/upload/source/class/table/table_forum_forum.php +++ b/upload/source/class/table/table_forum_forum.php @@ -38,7 +38,8 @@ class table_forum_forum extends discuz_table return DB::fetch_all("SELECT * FROM ".DB::table($this->_table)." WHERE $typesql $statussql $fupsql $limitsql"); } public function fetch_info_by_fid($fid) { - if(($data = $this->fetch_cache($fid)) === false) { + $data = $this->fetch_cache($fid); + if($data === false || !array_key_exists('description', $data)) { $data = DB::fetch_first("SELECT ff.*, f.* FROM %t f LEFT JOIN %t ff ON ff.fid=f.fid WHERE f.fid=%d", array($this->_table, 'forum_forumfield', $fid)); $this->store_cache($fid, $data); }