Skip to content

Commit

Permalink
Ticket #4148 - Build-in API support: Tuning.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Oct 27, 2023
1 parent fa57672 commit 8678575
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/boonex/forum/classes/BxForumModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ public function decodeDataApi ($aData, $bExtended = false)
return false;

$aCategoryData = $this->_oDb->getCategories(['type' => 'by_category', 'category' => $aData[$CNF['FIELD_CATEGORY']]]);

$aResult['category'] = ['name' => $oCategory->getCategoryTitle($aData[$CNF['FIELD_CATEGORY']]), 'icon' => $aCategoryData['icon']];
if(!empty($aCategoryData) &&is_array($aCategoryData))
$aResult['category'] = [
'name' => $oCategory->getCategoryTitle($aData[$CNF['FIELD_CATEGORY']]),
'icon' => $aCategoryData['icon']
];

return $aResult;
}
Expand Down

0 comments on commit 8678575

Please sign in to comment.