1
0
AntonLV 11 жил өмнө
parent
commit
5e35795ed7

+ 1 - 1
inc/classes/BxDolCmts.php

@@ -475,7 +475,7 @@ class BxDolCmts extends BxDol implements iBxDolReplaceable
         return $this->_oQuery->getObjectTitle ($iObjectId ? $iObjectId : $this->getId());
     }
 
-    public function getCommentsCount ($iObjectId = 0, $iCmtVParentId = 0, $sFilter = '')
+    public function getCommentsCount ($iObjectId = 0, $iCmtVParentId = -1, $sFilter = '')
     {
         return $this->_oQuery->getCommentsCount ($iObjectId ? $iObjectId : $this->getId(), $iCmtVParentId, $this->_getAuthorId(), $sFilter);
     }

+ 1 - 1
inc/classes/BxDolCmtsQuery.php

@@ -51,7 +51,7 @@ class BxDolCmtsQuery extends BxDolDb
         return $this->_sTable;
     }
 
-    function getCommentsCount ($iId, $iCmtVParentId = 0, $iAuthorId = 0, $sFilter = '')
+    function getCommentsCount ($iId, $iCmtVParentId = -1, $iAuthorId = 0, $sFilter = '')
     {
         $sWhereClause = '';
         if((int)$iCmtVParentId >= 0)