AntonLV %!s(int64=7) %!d(string=hai) anos
pai
achega
bc0fe08823
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      modules/boonex/notifications/classes/BxNtfsResponse.php

+ 3 - 0
modules/boonex/notifications/classes/BxNtfsResponse.php

@@ -30,6 +30,9 @@ class BxNtfsResponse extends BxBaseModNotificationsResponse
             return;
 
         $aHandler = $this->_oModule->_oConfig->getHandlers($oAlert->sUnit . '_' . $oAlert->sAction);
+        if(empty($aHandler) || !is_array($aHandler))
+            return;
+
         switch($aHandler['type']) {
             case BX_BASE_MOD_NTFS_HANDLER_TYPE_INSERT:
             	$sMethod = 'getInsertData' . bx_gen_method_name($oAlert->sUnit . '_' . $oAlert->sAction);