فهرست منبع

Ticket #3648 - Accounts: PHP notice on Manage Accounts page.

AntonLV 4 سال پیش
والد
کامیت
78648370da
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      modules/base/general/classes/BxBaseModGeneralGridAdministration.php

+ 3 - 3
modules/base/general/classes/BxBaseModGeneralGridAdministration.php

@@ -117,11 +117,11 @@ class BxBaseModGeneralGridAdministration extends BxTemplGrid
 
 
     protected function _getActionDelete($sType, $sKey, $a, $isSmall = false, $isDisabled = false, $aRow = array())
     protected function _getActionDelete($sType, $sKey, $a, $isSmall = false, $isDisabled = false, $aRow = array())
     {
     {
-		if($this->_sManageType == BX_DOL_MANAGE_TOOLS_ADMINISTRATION && !$this->_oModule->_isAdministrator())
-			return '';
+        if($this->_sManageType == BX_DOL_MANAGE_TOOLS_ADMINISTRATION && !$this->_oModule->_isAdministrator())
+            return '';
 
 
         $CNF = &$this->_oModule->_oConfig->CNF;
         $CNF = &$this->_oModule->_oConfig->CNF;
-        if (isset($aRow[$CNF['FIELD_ID']])){
+        if(isset($CNF['FIELD_ID']) && isset($aRow[$CNF['FIELD_ID']])){
             $aContentInfo = $this->_getContentInfo($aRow[$CNF['FIELD_ID']]);
             $aContentInfo = $this->_getContentInfo($aRow[$CNF['FIELD_ID']]);
             if($this->_oModule->checkAllowedDelete($aContentInfo) !== CHECK_ACTION_RESULT_ALLOWED)
             if($this->_oModule->checkAllowedDelete($aContentInfo) !== CHECK_ACTION_RESULT_ALLOWED)
                 return '';
                 return '';