Просмотр исходного кода

#5588 serviceBrowseInvitations generate DB error when there is no installed content modules

Aleksandr Trofimov 2 месяцев назад
Родитель
Сommit
ff41f48b5f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      template/scripts/BxBaseServiceProfiles.php

+ 1 - 1
template/scripts/BxBaseServiceProfiles.php

@@ -961,7 +961,7 @@ class BxBaseServiceProfiles extends BxDol
  
         if($this->_bIsApi) {
             $aDataApi = [];
-            if($bApiGetData) {
+            if($bApiGetData && $aData && $aData['queries']) {
                 $aItems = BxDolDb::getInstance()->getAll('(' . implode(') UNION (', $aData['queries']) . ') ORDER BY `added` DESC ' . $aData['limit']);
 
                 $oProfileQuery = BxDolProfileQuery::getInstance();