Explorar o código

#3421 Comments: allow authors and groups admins to delete comments

RomanL %!s(int64=5) %!d(string=hai) anos
pai
achega
09b7f550fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      inc/classes/BxDolCmts.php

+ 1 - 1
inc/classes/BxDolCmts.php

@@ -1065,7 +1065,7 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
         $oModule = BxDolModule::getInstance($this->_aSystem['module']);
         $oModule = BxDolModule::getInstance($this->_aSystem['module']);
         $CNF = $oModule->_oConfig->CNF;
         $CNF = $oModule->_oConfig->CNF;
         
         
-        if ($aContentInfo[$CNF['FIELD_AUTHOR']] == $this->_getAuthorId() && $this->checkAction('comments remove in own content', $isPerformAction)){
+        if (isset($CNF['FIELD_AUTHOR']) && $aContentInfo[$CNF['FIELD_AUTHOR']] == $this->_getAuthorId() && $this->checkAction('comments remove in own content', $isPerformAction)){
             return true;
             return true;
         }
         }