Parcourir la source

#1666 Videos (maybe other modules as well): PHP error upon module activation

Alex Trofimov il y a 8 ans
Parent
commit
d290d3a272
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      modules/base/profile/classes/BxBaseModProfileModule.php

+ 3 - 3
modules/base/profile/classes/BxBaseModProfileModule.php

@@ -178,11 +178,11 @@ class BxBaseModProfileModule extends BxBaseModGeneralModule implements iBxDolCon
     {
         $CNF = &$this->_oConfig->CNF;
 
-        if ($CNF['TRIGGER_MENU_PROFILE_VIEW_SUBMENU'] == $sMenuTriggerName)
+        if (isset($CNF['TRIGGER_MENU_PROFILE_VIEW_SUBMENU']) && $CNF['TRIGGER_MENU_PROFILE_VIEW_SUBMENU'] == $sMenuTriggerName)
             return $CNF['OBJECT_MENU_SUBMENU_VIEW_ENTRY'];
-        elseif ($CNF['TRIGGER_MENU_PROFILE_SNIPPET_META'] == $sMenuTriggerName)
+        elseif (isset($CNF['TRIGGER_MENU_PROFILE_SNIPPET_META']) && $CNF['TRIGGER_MENU_PROFILE_SNIPPET_META'] == $sMenuTriggerName)
             return $CNF['OBJECT_MENU_SNIPPET_META'];
-        else if ($CNF['TRIGGER_MENU_PROFILE_VIEW_ACTIONS'] == $sMenuTriggerName) {
+        else if (isset($CNF['TRIGGER_MENU_PROFILE_VIEW_ACTIONS']) && $CNF['TRIGGER_MENU_PROFILE_VIEW_ACTIONS'] == $sMenuTriggerName) {
             if(empty($CNF['OBJECT_MENU_ACTIONS_VIEW_ENTRY_ALL']))
                 return $CNF['OBJECT_MENU_ACTIONS_VIEW_ENTRY'];
             else