Przeglądaj źródła

#4148 - Build-in API support (cmts)

roman.lesnikov@gmail.com 3 lat temu
rodzic
commit
de98bab780
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      template/scripts/BxBaseCmtsServices.php

+ 1 - 1
template/scripts/BxBaseCmtsServices.php

@@ -502,7 +502,7 @@ class BxBaseCmtsServices extends BxDol
             'object_id' => $oCmts->getId(),
             'data' => $aCmtsRv
         ];
-        if ($aParams['mode'] == 'feed')
+        if (isset($aParams['mode']) &&  $aParams['mode'] == 'feed')
             return $aData;
         
         $aRv = [