Alex Trofimov 4 лет назад
Родитель
Сommit
f1c87aaa83

+ 1 - 1
modules/boonex/elasticsearch/classes/BxElsResponse.php

@@ -107,7 +107,7 @@ class BxElsResponse extends BxDolAlertsResponse
         $aResults = $this->_oModule->serviceSearchExtended($aCondition, $aSelection, $oContentInfo->getName());
 
         $aIds = array();
-        if((int)$aResults['total'] > 0 && !empty($aResults['hits']))
+        if($aResults && (int)$aResults['total'] > 0 && !empty($aResults['hits']))
             foreach($aResults['hits'] as $aResult)
                 $aIds[] = $aResult['_id'];
 

+ 1 - 1
template/scripts/BxBaseGrid.php

@@ -15,7 +15,7 @@ class BxBaseGrid extends BxDolGrid
 {
     protected $_oTemplate;
     protected $_aPopupOptions = false;
-    protected $_aQueryAppend = false;
+    protected $_aQueryAppend = [];
     protected $_aQueryAppendExclude = false; // an array of keys which shouldn't be pathed in http requests, but can be stored (used) in 'Query Append' array.
     protected $_aQueryReset = false;
     protected $_aConfirmMessages = false;