AntonLV 6 лет назад
Родитель
Сommit
f915bf6ce3
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      inc/classes/BxDolCmts.php
  2. 2 2
      inc/classes/BxDolContentInfoCmts.php

+ 2 - 2
inc/classes/BxDolCmts.php

@@ -1447,9 +1447,9 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
     public function unregisterTranscoders()
     {}
 
-    public function serviceGetSearchResultExtended($aParams, $iStart = 0, $iPerPage = 0)
+    public function serviceGetSearchResultExtended($aParams, $iStart = 0, $iPerPage = 0, $bFilterMode = false)
     {
-        if(empty($aParams) || !is_array($aParams))
+        if((empty($aParams) || !is_array($aParams)) && !$bFilterMode)
             return array();
 
         return $this->_oQuery->getCommentsBy(array('type' => 'search_ids', 'search_params' => $aParams, 'start' => $iStart, 'per_page' => $iPerPage));

+ 2 - 2
inc/classes/BxDolContentInfoCmts.php

@@ -74,9 +74,9 @@ class BxDolContentInfoCmts extends BxDolContentInfo
         return $this->_oCmts->serviceGetSearchableFieldsExtended();
     }
 
-    public function getSearchResultExtended ($aParams, $iStart = 0, $iPerPage = 0)
+    public function getSearchResultExtended ($aParams, $iStart = 0, $iPerPage = 0, $bFilterMode = false)
     {
-        return $this->_oCmts->serviceGetSearchResultExtended($aParams, $iStart, $iPerPage);
+        return $this->_oCmts->serviceGetSearchResultExtended($aParams, $iStart, $iPerPage, $bFilterMode);
     }
 }