AntonLV 8 tahun lalu
induk
melakukan
2053645dab
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      modules/boonex/forum/classes/BxForumPageEntry.php

+ 3 - 0
modules/boonex/forum/classes/BxForumPageEntry.php

@@ -25,6 +25,9 @@ class BxForumPageEntry extends BxBaseModTextPageEntry
 
 
     public function getCode()
     public function getCode()
     {
     {
+    	if(empty($this->_aContentInfo) || !is_array($this->_aContentInfo))
+    		return parent::getCode();
+
     	$CNF = &$this->_oModule->_oConfig->CNF;
     	$CNF = &$this->_oModule->_oConfig->CNF;
 
 
     	$aCategory = $this->_oModule->_oDb->getCategories(array('type' => 'by_category', 'category' => $this->_aContentInfo[$CNF['FIELD_CATEGORY']]));
     	$aCategory = $this->_oModule->_oDb->getCategories(array('type' => 'by_category', 'category' => $this->_aContentInfo[$CNF['FIELD_CATEGORY']]));